Mod: use emplace_back
This commit is contained in:
@@ -149,9 +149,9 @@ void ViewProviderRobotObject::setDisplayMode(const char* ModeName)
|
||||
std::vector<std::string> ViewProviderRobotObject::getDisplayModes(void) const
|
||||
{
|
||||
std::vector<std::string> StrList;
|
||||
StrList.push_back("VRML");
|
||||
StrList.push_back("Simple");
|
||||
StrList.push_back("Off");
|
||||
StrList.emplace_back("VRML");
|
||||
StrList.emplace_back("Simple");
|
||||
StrList.emplace_back("Off");
|
||||
return StrList;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user