Fix allocation of more memory in the ParseTree.addAllComponents function

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-04-17 12:57:21 +02:00
parent 3c7835b2a6
commit 663979ea65
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ protected:
void addAllComponents(
const initializer_list<T>& components
) const {
subComponents.reserve(components.size());
subComponents.reserve(subComponents.size() + components.size());
for (const T& current: components) addComponent<T>(current);
}
public: