Mod: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:37 +10:00
committed by wwmayer
parent 6ac4d8392e
commit 2d4c5a4cfb
65 changed files with 254 additions and 265 deletions

View File

@@ -180,7 +180,7 @@ ViewProviderExport::~ViewProviderExport()
std::vector<std::string> ViewProviderExport::getDisplayModes() const
{
std::vector<std::string> mode;
mode.push_back("");
mode.emplace_back("");
return mode;
}
@@ -630,10 +630,10 @@ std::vector<std::string> ViewProviderMesh::getDisplayModes() const
std::vector<std::string> StrList;
// add your own modes
StrList.push_back("Shaded");
StrList.push_back("Wireframe");
StrList.push_back("Flat Lines");
StrList.push_back("Points");
StrList.emplace_back("Shaded");
StrList.emplace_back("Wireframe");
StrList.emplace_back("Flat Lines");
StrList.emplace_back("Points");
return StrList;
}