diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app.cpp b/src/app.cpp index 3f62575..e04b89b 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -65,6 +65,7 @@ struct result<layouts_type> load_layout(char const *filename) { i >> jlayouts; auto layouts = layouts_type(); + layouts.reserve(jlayouts.size()); std::transform(std::cbegin(jlayouts), std::cend(jlayouts), std::back_inserter(layouts), layout_from_json); |