Andreas Kling
d9e459293b
LibCore: Add Core::Object::add<T> helper for creating child objects
...
Consider the old pattern for creating a Core::Object parent and child:
auto parent = Core::Object::construct(...);
auto child = Core::Object::construct(..., parent);
The above was an artifact of the pre-reference-counting Object era.
Now that objects have less esoteric lifetime management, we can replace
the old pattern with something more expressive:
auto parent = Core::Object::construct(...);
auto child = parent->add<Core::Object>(...);
This reads a lot more naturally, and it also means we can get rid of
all the parent pointer arguments to Core::Object subclass constructors.
2020-02-23 11:10:52 +01:00
..
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:58:52 +01:00
2020-02-15 00:58:52 +01:00
2020-02-16 02:19:22 +01:00
2020-02-16 02:19:22 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-14 23:31:18 +01:00
2020-02-20 13:20:34 +01:00
2020-02-15 02:09:00 +01:00
2020-02-12 21:17:00 +01:00
2020-02-12 21:17:00 +01:00
2020-02-15 00:10:34 +01:00
2020-02-20 13:20:34 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:32:33 +01:00
2020-02-20 13:20:34 +01:00
2020-02-15 00:32:33 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-14 23:31:18 +01:00
2020-02-14 23:31:18 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:32:33 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:32:33 +01:00
2020-02-15 00:58:52 +01:00
2020-02-14 13:17:26 +01:00
2020-02-14 13:17:26 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:32:33 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-14 23:31:18 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:58:52 +01:00
2020-02-23 11:10:52 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2019-11-23 23:43:37 +01:00
2020-01-25 10:34:32 +01:00
2020-02-22 16:41:31 +01:00
2020-02-22 16:38:10 +01:00
2020-02-15 00:58:52 +01:00
2020-02-15 00:58:52 +01:00
2020-02-06 15:04:57 +01:00
2020-02-10 14:15:56 +01:00
2020-02-15 00:32:33 +01:00
2020-02-06 15:04:03 +01:00
2020-02-15 00:32:33 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00
2020-02-10 14:15:56 +01:00
2020-02-14 23:31:18 +01:00
2020-02-06 15:04:03 +01:00
2020-02-14 23:31:18 +01:00
2020-02-06 15:04:03 +01:00
2020-02-06 15:04:03 +01:00