Mod: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:37 +10:00
committed by wwmayer
parent 066656f62a
commit 47ac049e14
65 changed files with 254 additions and 265 deletions

View File

@@ -131,7 +131,7 @@ std::vector<std::string> DrawViewSymbol::getEditableFields()
while (!queryResult.next().isNull()) {
QDomElement tspan = model.toDomNode(queryResult.current().toNodeModelIndex()).toElement();
QString editableValue = tspan.firstChild().nodeValue();
editables.push_back(std::string(editableValue.toUtf8().constData()));
editables.emplace_back(editableValue.toUtf8().constData());
}
}
return editables;