1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 19:02:06 +00:00
serenity/Services/Clipboard
Lenny Maiorani e6f907a155 AK: Simplify constructors and conversions from nullptr_t
Problem:
- Many constructors are defined as `{}` rather than using the ` =
  default` compiler-provided constructor.
- Some types provide an implicit conversion operator from `nullptr_t`
  instead of requiring the caller to default construct. This violates
  the C++ Core Guidelines suggestion to declare single-argument
  constructors explicit
  (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit).

Solution:
- Change default constructors to use the compiler-provided default
  constructor.
- Remove implicit conversion operators from `nullptr_t` and change
  usage to enforce type consistency without conversion.
2021-01-12 09:11:45 +01:00
..
ClientConnection.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
ClientConnection.h LibIPC: Share most of the code between {Client,Server}Connection 2020-09-12 14:49:29 +02:00
ClipboardClient.ipc LibIPC: Allow opt-in UTF-8 validation on message parameters 2020-05-16 14:13:09 +02:00
ClipboardServer.ipc Clipboard: Add a key-value map alongside the clipboard storage 2020-09-05 16:52:24 +02:00
CMakeLists.txt Clipboard: Move the system clipboard to a dedicated service process :^) 2020-05-14 22:53:58 +02:00
main.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
Storage.cpp AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00
Storage.h AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00