Mpre QVector::reserve usage

parent 7a1864f7
......@@ -390,6 +390,7 @@ TaggedUnionDataInformation* DataInformationFactory::newTaggedUnion(const TaggedU
//verify alternatives
bool alternativesValid = true;
QVector<TaggedUnionDataInformation::FieldInfo> altInfo;
altInfo.reserve(pd.alternatives.size());
for(int i = 0; i < pd.alternatives.size(); ++i)
{
const TaggedUnionParsedData::Alternatives& fi = pd.alternatives.at(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment