1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -16,10 +16,10 @@ class Property {
AK_MAKE_NONCOPYABLE(Property);
public:
Property(String name, Function<JsonValue()> getter, Function<bool(const JsonValue&)> setter = nullptr);
Property(String name, Function<JsonValue()> getter, Function<bool(JsonValue const&)> setter = nullptr);
~Property() = default;
bool set(const JsonValue& value)
bool set(JsonValue const& value)
{
if (!m_setter)
return false;
@ -28,13 +28,13 @@ public:
JsonValue get() const { return m_getter(); }
const String& name() const { return m_name; }
String const& name() const { return m_name; }
bool is_readonly() const { return !m_setter; }
private:
String m_name;
Function<JsonValue()> m_getter;
Function<bool(const JsonValue&)> m_setter;
Function<bool(JsonValue const&)> m_setter;
};
}