mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-04 22:09:03 +00:00
View::add_children: Use std::list_initializer as argument.
Improvement in code size -- 944 bytes. Some day I will understand C++11 well enough to do the right thing the first time.
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
void add_child(Widget* const widget);
|
||||
void add_children(const std::vector<Widget*>& children);
|
||||
void add_children(const std::initializer_list<Widget*> children);
|
||||
void remove_child(Widget* const widget);
|
||||
const std::vector<Widget*>& children() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user