1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00
serenity/Services/ImageDecoder
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
CMakeLists.txt LibIPC+Services: Make ClientConnection take socket as NonnullRefPtr 2020-07-06 13:30:11 +02:00
Forward.h ImageDecoder: Add a new service for out-of-process image decoding :^) 2020-06-22 21:47:00 +02:00
ImageDecoderClient.ipc ImageDecoder: Add a new service for out-of-process image decoding :^) 2020-06-22 21:47:00 +02:00
ImageDecoderServer.ipc ImageDecoder: Add a new service for out-of-process image decoding :^) 2020-06-22 21:47:00 +02:00
main.cpp Meta+Services: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00