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

@@ -249,16 +249,16 @@ void ViewProviderPoints::setDisplayMode(const char* ModeName)
std::vector<std::string> ViewProviderPoints::getDisplayModes() const
{
std::vector<std::string> StrList;
StrList.push_back("Points");
StrList.emplace_back("Points");
// FIXME: This way all display modes are added even if the points feature
// doesn't support it.
// For the future a more flexible way is needed to add new display modes
// at a later time
#if 1
StrList.push_back("Color");
StrList.push_back("Shaded");
StrList.push_back("Intensity");
StrList.emplace_back("Color");
StrList.emplace_back("Shaded");
StrList.emplace_back("Intensity");
#else
if (pcObject) {