diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-15 23:24:47 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-16 17:17:13 +0200 |
commit | 2b570181966dc3eda3eb17493f5ad2da1d03f642 (patch) | |
tree | 51fb060416c2560fcfbf64814652ad47841b40d8 /Userland/Libraries/LibWeb/CSS/Parser | |
parent | 14eb736e22c6558941078716c528e5c037545d6e (diff) | |
download | serenity-2b570181966dc3eda3eb17493f5ad2da1d03f642.zip |
LibWeb: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.h | 2 |
2 files changed, 1 insertions, 5 deletions
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&); |