ladybird/AK
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
..
Tests AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
AllOf.h
Array.h
Assertions.h
Atomic.h
Badge.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Base64.cpp
Base64.h
BinarySearch.h
Bitmap.h
BitStream.h
Buffered.h
ByteBuffer.cpp
ByteBuffer.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Checked.h
CircularDeque.h
CircularDuplexStream.h
CircularQueue.h
CMakeLists.txt
Concepts.h
Demangle.h
DistinctNumeric.h
DoublyLinkedList.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Endian.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
FileStream.h
Find.h AK: Find a value in any container offering iterators 2021-01-11 19:45:05 +01:00
FlyString.cpp
FlyString.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Format.cpp AK: Add Formatter<FormatString> as helper class. 2021-01-09 21:11:09 +01:00
Format.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Forward.h
Function.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
GenericLexer.cpp
GenericLexer.h
HashFunctions.h
HashMap.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
HashTable.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Hex.cpp
Hex.h
IDAllocator.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
InlineLinkedList.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
IntrusiveList.h
IPv4Address.h
IterationDecision.h
Iterator.h
JsonArray.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
JsonArraySerializer.h
JsonObject.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
JsonObjectSerializer.h
JsonParser.cpp
JsonParser.h
JsonPath.cpp
JsonPath.h
JsonValue.cpp
JsonValue.h
kmalloc.h
kstdio.h
LexicalPath.cpp
LexicalPath.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
LogStream.cpp
LogStream.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
MACAddress.h
MappedFile.cpp AK: Make MappedFile heap-allocated and ref-counted 2021-01-10 16:49:13 +01:00
MappedFile.h AK: Make MappedFile heap-allocated and ref-counted 2021-01-10 16:49:13 +01:00
MemMem.h
Memory.h
MemoryStream.h
NeverDestroyed.h
Noncopyable.h
NonnullOwnPtr.h
NonnullOwnPtrVector.h
NonnullPtrVector.h
NonnullRefPtr.h
NonnullRefPtrVector.h
NumberFormat.h
NumericLimits.h
Optional.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
OSError.h AK: Add AK::OSError, a wrapper for errno codes 2021-01-10 16:46:13 +01:00
OwnPtr.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Platform.h
PrintfImplementation.h
Queue.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
QuickSort.h
Random.h
RefCounted.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
RefPtr.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Result.h AK: Add release_value() and release_error() to AK::Result 2021-01-09 19:57:50 +01:00
ScopedValueRollback.h
ScopeGuard.h
SharedBuffer.cpp
SharedBuffer.h
SIMD.h
Singleton.h AK: Add static Singleton::get function to allow destructible globals 2021-01-09 21:12:31 +01:00
SinglyLinkedList.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
SinglyLinkedListWithCount.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
SourceGenerator.h
Span.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
StackInfo.cpp
StackInfo.h
StdLibExtras.h
Stream.h
String.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
String.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
StringBuilder.cpp
StringBuilder.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
StringImpl.cpp
StringImpl.h
StringUtils.cpp AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants 2021-01-11 21:09:36 +01:00
StringUtils.h
StringView.cpp AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants 2021-01-11 21:09:36 +01:00
StringView.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
TemporaryChange.h
TestSuite.h
Time.cpp
Time.h
Traits.h AK: Find a value in any container offering iterators 2021-01-11 19:45:05 +01:00
Trie.h
TypeCasts.h
TypedTransfer.h
TypeList.h
Types.h
URL.cpp
URL.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
URLParser.cpp
URLParser.h
Userspace.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Utf8View.cpp
Utf8View.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Utf32View.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
UUID.cpp
UUID.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Vector.h Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
Weakable.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
WeakPtr.h AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00