mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-07 22:52:53 -04: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:
parent
298324d6e4
commit
8a69b0523e
16 changed files with 57 additions and 55 deletions
|
@ -230,7 +230,7 @@ Thread* SDCardTestThread::thread { nullptr };
|
|||
namespace ui {
|
||||
|
||||
SDCardDebugView::SDCardDebugView(NavigationView& nav) {
|
||||
add_children({ {
|
||||
add_children({
|
||||
&text_title,
|
||||
&text_csd_title,
|
||||
&text_csd_value_3,
|
||||
|
@ -257,7 +257,7 @@ SDCardDebugView::SDCardDebugView(NavigationView& nav) {
|
|||
&text_test_read_rate_value,
|
||||
&button_test,
|
||||
&button_ok,
|
||||
} });
|
||||
});
|
||||
|
||||
button_test.on_select = [this](Button&){ this->on_test(); };
|
||||
button_ok.on_select = [&nav](Button&){ nav.pop(); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue