diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h index 90e1c0b283..5187de9c30 100644 --- a/Userland/Libraries/LibWeb/CSS/Length.h +++ b/Userland/Libraries/LibWeb/CSS/Length.h @@ -35,7 +35,7 @@ public: Vmin, }; - Length() { } + Length() = default; Length(int value, Type type) : m_type(type) , m_value(value) diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index cd1372985f..ad11b17999 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -31,10 +31,6 @@ static void log_parse_error(const SourceLocation& location = SourceLocation::cur namespace Web::CSS { -ParsingContext::ParsingContext() -{ -} - ParsingContext::ParsingContext(DOM::Document& document) : m_document(&document) { diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h index 3777251f48..ff006da18a 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h @@ -32,7 +32,7 @@ enum class PropertyID; class ParsingContext { public: - ParsingContext(); + ParsingContext() = default; explicit ParsingContext(DOM::Document&); explicit ParsingContext(DOM::ParentNode&); diff --git a/Userland/Libraries/LibWeb/DOM/NonDocumentTypeChildNode.h b/Userland/Libraries/LibWeb/DOM/NonDocumentTypeChildNode.h index c63b117a01..2683919113 100644 --- a/Userland/Libraries/LibWeb/DOM/NonDocumentTypeChildNode.h +++ b/Userland/Libraries/LibWeb/DOM/NonDocumentTypeChildNode.h @@ -47,7 +47,7 @@ public: const Element* next_element_in_pre_order() const { return const_cast(this)->next_element_in_pre_order(); } protected: - NonDocumentTypeChildNode() { } + NonDocumentTypeChildNode() = default; }; } diff --git a/Userland/Libraries/LibWeb/DOM/NonElementParentNode.h b/Userland/Libraries/LibWeb/DOM/NonElementParentNode.h index af6433a13f..4b8605d4bd 100644 --- a/Userland/Libraries/LibWeb/DOM/NonElementParentNode.h +++ b/Userland/Libraries/LibWeb/DOM/NonElementParentNode.h @@ -34,7 +34,7 @@ public: } protected: - NonElementParentNode() { } + NonElementParentNode() = default; }; } diff --git a/Userland/Libraries/LibWeb/TreeNode.h b/Userland/Libraries/LibWeb/TreeNode.h index 1fd4ef135a..15948e7318 100644 --- a/Userland/Libraries/LibWeb/TreeNode.h +++ b/Userland/Libraries/LibWeb/TreeNode.h @@ -419,7 +419,7 @@ public: } protected: - TreeNode() { } + TreeNode() = default; bool m_deletion_has_begun { false }; bool m_in_removed_last_ref { false };