Reserve size of some containers we are filling
This commit is contained in:
parent
812e3b5f03
commit
19dc6cadea
31 changed files with 317 additions and 209 deletions
|
|
@ -293,6 +293,7 @@ CommunitiesModel::FlatTree::storeCollapsed()
|
|||
int depth = -1;
|
||||
|
||||
QStringList current;
|
||||
elements.reserve(static_cast<int>(tree.size()));
|
||||
|
||||
for (const auto &e : tree) {
|
||||
if (e.depth > depth) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue