mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: Use emplace
This commit is contained in:
committed by
Brad King
parent
2e5307a2a4
commit
ef61997b1b
@@ -105,7 +105,7 @@ bool addFilesToItsSourceGroups(const std::string& root,
|
||||
tokenizedPath.pop_back();
|
||||
|
||||
if (tokenizedPath.empty()) {
|
||||
tokenizedPath.push_back("");
|
||||
tokenizedPath.emplace_back();
|
||||
}
|
||||
|
||||
sg = makefile.GetOrCreateSourceGroup(tokenizedPath);
|
||||
|
||||
Reference in New Issue
Block a user