mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +08:00
clang-tidy: Use emplace
This commit is contained in:

committed by
Brad King

parent
2e5307a2a4
commit
ef61997b1b
@@ -68,7 +68,7 @@ void cmDependsJavaParserHelper::AddClassFound(const char* sclass)
|
||||
return;
|
||||
}
|
||||
}
|
||||
this->ClassesFound.push_back(sclass);
|
||||
this->ClassesFound.emplace_back(sclass);
|
||||
}
|
||||
|
||||
void cmDependsJavaParserHelper::AddPackagesImport(const char* sclass)
|
||||
@@ -78,7 +78,7 @@ void cmDependsJavaParserHelper::AddPackagesImport(const char* sclass)
|
||||
return;
|
||||
}
|
||||
}
|
||||
this->PackagesImport.push_back(sclass);
|
||||
this->PackagesImport.emplace_back(sclass);
|
||||
}
|
||||
|
||||
void cmDependsJavaParserHelper::SafePrintMissing(const char* str, int line,
|
||||
|
Reference in New Issue
Block a user