mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibWeb: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
14eb736e22
commit
2b57018196
6 changed files with 5 additions and 9 deletions
|
@ -35,7 +35,7 @@ public:
|
|||
Vmin,
|
||||
};
|
||||
|
||||
Length() { }
|
||||
Length() = default;
|
||||
Length(int value, Type type)
|
||||
: m_type(type)
|
||||
, m_value(value)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ enum class PropertyID;
|
|||
|
||||
class ParsingContext {
|
||||
public:
|
||||
ParsingContext();
|
||||
ParsingContext() = default;
|
||||
explicit ParsingContext(DOM::Document&);
|
||||
explicit ParsingContext(DOM::ParentNode&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue