Gui: use emplace_back

This commit is contained in:
berniev
2022-08-05 16:06:02 +10:00
committed by wwmayer
parent ac81a8380f
commit 066656f62a
19 changed files with 52 additions and 52 deletions

View File

@@ -167,8 +167,8 @@ std::vector<std::string> ViewProviderAnnotation::getDisplayModes(void) const
{
// add modes
std::vector<std::string> StrList;
StrList.push_back("Screen");
StrList.push_back("World");
StrList.emplace_back("Screen");
StrList.emplace_back("World");
return StrList;
}
@@ -337,8 +337,8 @@ std::vector<std::string> ViewProviderAnnotationLabel::getDisplayModes(void) cons
{
// add modes
std::vector<std::string> StrList;
StrList.push_back("Line");
StrList.push_back("Object");
StrList.emplace_back("Line");
StrList.emplace_back("Object");
return StrList;
}