Mod: use emplace_back
This commit is contained in:
@@ -47,10 +47,10 @@ std::vector<std::string> ViewProviderSphereParametric::getDisplayModes(void) con
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
// add your own modes
|
||||
StrList.push_back("Flat Lines");
|
||||
StrList.push_back("Shaded");
|
||||
StrList.push_back("Wireframe");
|
||||
StrList.push_back("Points");
|
||||
StrList.emplace_back("Flat Lines");
|
||||
StrList.emplace_back("Shaded");
|
||||
StrList.emplace_back("Wireframe");
|
||||
StrList.emplace_back("Points");
|
||||
|
||||
return StrList;
|
||||
}
|
||||
@@ -73,10 +73,10 @@ std::vector<std::string> ViewProviderEllipsoid::getDisplayModes(void) const
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
// add your own modes
|
||||
StrList.push_back("Flat Lines");
|
||||
StrList.push_back("Shaded");
|
||||
StrList.push_back("Wireframe");
|
||||
StrList.push_back("Points");
|
||||
StrList.emplace_back("Flat Lines");
|
||||
StrList.emplace_back("Shaded");
|
||||
StrList.emplace_back("Wireframe");
|
||||
StrList.emplace_back("Points");
|
||||
|
||||
return StrList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user