1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 10:55:07 +00:00
serenity/Kernel/Storage/Partition
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
..
DiskPartition.cpp Kernel: Allow to boot from a partition with partition UUID 2021-01-01 22:59:48 +01:00
DiskPartition.h Kernel: Allow to boot from a partition with partition UUID 2021-01-01 22:59:48 +01:00
DiskPartitionMetadata.cpp Kernel: Allow to boot from a partition with partition UUID 2021-01-01 22:59:48 +01:00
DiskPartitionMetadata.h Kernel: Allow to boot from a partition with partition UUID 2021-01-01 22:59:48 +01:00
EBRPartitionTable.cpp Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
EBRPartitionTable.h Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
GUIDPartitionTable.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-11 11:55:47 +01:00
GUIDPartitionTable.h Kernel: Allow to boot from a partition with partition UUID 2021-01-01 22:59:48 +01:00
MBRPartitionTable.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
MBRPartitionTable.h Everywhere: Re-format with clang-format-11 2020-12-31 21:51:00 +01:00
PartitionTable.cpp Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
PartitionTable.h Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00