mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
Meta+DevTools: Make clang-format-10 clean
This commit is contained in:
parent
b3909ac0dd
commit
25488ddcad
Notes:
sideshowbarker
2024-07-19 02:14:51 +09:00
Author: https://github.com/BenWiederhake
Commit: 25488ddcad
Pull-request: https://github.com/SerenityOS/serenity/pull/3541
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
18 changed files with 24 additions and 53 deletions
|
@ -130,9 +130,9 @@ void VBWidget::add_property(const String& name, Function<GUI::Variant(const GUI:
|
|||
prop.m_setter = move(setter);
|
||||
}
|
||||
|
||||
#define VB_ADD_PROPERTY(gclass, name, getter, setter, variant_type) \
|
||||
add_property( \
|
||||
name, \
|
||||
#define VB_ADD_PROPERTY(gclass, name, getter, setter, variant_type) \
|
||||
add_property( \
|
||||
name, \
|
||||
[](auto& widget) -> GUI::Variant { return ((const gclass&)widget).getter(); }, \
|
||||
[](auto& widget, auto& value) { ((gclass&)widget).setter(value.to_##variant_type()); })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue