diff options
author | Brad King <brad.king@kitware.com> | 2019-04-08 11:42:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-08 11:44:10 (GMT) |
commit | 99ce35ab9cbdac4a7cc626590f5e86c36ae29070 (patch) | |
tree | 147042f0ee85c0d94f60a8dc94c7420d48776a7b /Source | |
parent | 658efb4c1ab309646f0a29f806315f805de477a4 (diff) | |
parent | c1d1027ac1bf922972ebb121f369ff59be27103d (diff) | |
download | CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.zip CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.tar.gz CMake-99ce35ab9cbdac4a7cc626590f5e86c36ae29070.tar.bz2 |
Merge topic 'tidy-fixes'
c1d1027ac1 Enabled performance-inefficient-vector-operation check in clang-tidy
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3185
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSourceGroupCommand.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSourceGroupCommand.cxx b/Source/cmSourceGroupCommand.cxx index 34ded38..2bc4c39 100644 --- a/Source/cmSourceGroupCommand.cxx +++ b/Source/cmSourceGroupCommand.cxx @@ -77,6 +77,7 @@ std::vector<std::string> prepareFilesPathsForTree( const std::string& currentSourceDir) { std::vector<std::string> prepared; + prepared.reserve(filesPaths.size()); for (auto const& filePath : filesPaths) { prepared.push_back(prepareFilePathForTree(filePath, currentSourceDir)); |