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:
Jared Boone
2016-09-05 14:53:04 -07:00
parent 298324d6e4
commit 8a69b0523e
16 changed files with 57 additions and 55 deletions

View File

@@ -177,13 +177,13 @@ RecordView::RecordView(
write_size { write_size },
buffer_count { buffer_count }
{
add_children({ {
add_children({
&rect_background,
&button_record,
&text_record_filename,
&text_record_dropped,
&text_time_available,
} });
});
rect_background.set_parent_rect({ { 0, 0 }, size() });