ladybird/Userland/Libraries/LibCore/Property.cpp
Lenny Maiorani ea58b8d927 Libraries: Use default constructors/destructors in LibCore
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-10 18:04:26 -08:00

19 lines
404 B
C++

/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/Property.h>
namespace Core {
Property::Property(String name, Function<JsonValue()> getter, Function<bool(const JsonValue&)> setter)
: m_name(move(name))
, m_getter(move(getter))
, m_setter(move(setter))
{
}
}