mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 23:22:19 +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:
@@ -33,7 +33,7 @@ TouchCalibrationView::TouchCalibrationView(
|
||||
) : nav { nav },
|
||||
calibration { touch::default_calibration() }
|
||||
{
|
||||
add_children({ {
|
||||
add_children({
|
||||
&image_calibrate_0,
|
||||
&image_calibrate_1,
|
||||
&image_calibrate_2,
|
||||
@@ -46,7 +46,7 @@ TouchCalibrationView::TouchCalibrationView(
|
||||
&label_failure,
|
||||
&button_cancel,
|
||||
&button_ok,
|
||||
} });
|
||||
});
|
||||
|
||||
button_cancel.on_select = [this](Button&){ this->on_cancel(); };
|
||||
button_ok.on_select = [this](Button&){ this->on_ok(); };
|
||||
|
||||
Reference in New Issue
Block a user