diff options
author | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-05-24 20:18:28 (GMT) |
---|---|---|
committer | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-05-26 16:50:11 (GMT) |
commit | 86dc86dd6c66a6d61234efcddddddf466a6597d2 (patch) | |
tree | f7fcf0d9852d4d66b362a9c0fba67fd9d42661e8 /Source/cmake.cxx | |
parent | 76bdb4076277cda0e68e1d80cdf715020eab5a7a (diff) | |
download | CMake-86dc86dd6c66a6d61234efcddddddf466a6597d2.zip CMake-86dc86dd6c66a6d61234efcddddddf466a6597d2.tar.gz CMake-86dc86dd6c66a6d61234efcddddddf466a6597d2.tar.bz2 |
Add const-reference qualifications
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 53e9ab0..6894393 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -301,7 +301,7 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args) { bool findPackageMode = false; for (unsigned int i = 1; i < args.size(); ++i) { - std::string arg = args[i]; + std::string const& arg = args[i]; if (arg.find("-D", 0) == 0) { std::string entry = arg.substr(2); if (entry.empty()) { @@ -617,7 +617,7 @@ void cmake::SetArgs(const std::vector<std::string>& args, bool haveToolset = false; bool havePlatform = false; for (unsigned int i = 1; i < args.size(); ++i) { - std::string arg = args[i]; + std::string const& arg = args[i]; if (arg.find("-H", 0) == 0) { directoriesSet = true; std::string path = arg.substr(2); @@ -2146,7 +2146,7 @@ int cmake::GetSystemInformation(std::vector<std::string>& args) // process the arguments bool writeToStdout = true; for (unsigned int i = 1; i < args.size(); ++i) { - std::string arg = args[i]; + std::string const& arg = args[i]; if (arg.find("-G", 0) == 0) { std::string value = arg.substr(2); if (value.empty()) { |