1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:58:14 +00:00

VisualBuilder: Fix compiler warnings.

This commit is contained in:
Andreas Kling 2019-06-22 16:16:39 +02:00
parent 3b01d7fdff
commit 17acc1e0a8

View file

@ -106,10 +106,6 @@ GWidget* VBWidgetRegistry::build_gwidget(VBWidget& widget, VBWidgetType type, GW
property->set_readonly(true);
properties.append(move(property));
};
auto add_property = [&](const String& name, Function<GVariant(const GWidget&)>&& getter, Function<void(GWidget&, const GVariant&)>&& setter) {
auto property = make<VBProperty>(widget, name, move(getter), move(setter));
properties.append(move(property));
};
add_readonly_property("class", to_class_name(type));
return gwidget;
}