diff options
author | Brad King <brad.king@kitware.com> | 2017-05-28 13:13:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-28 13:13:12 (GMT) |
commit | f8642f953d3d8547bd31fcb35a4737fa91d9126f (patch) | |
tree | 1a56170d6d43c1515b49142c7223ea06eb7faa5d /Source/cmVariableRequiresCommand.cxx | |
parent | f9ea6247c10fa0b39977f9b75d266e7282b19a1b (diff) | |
parent | 2c2bb5f527b4c0e0eca7867492c046be23818c9a (diff) | |
download | CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.zip CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.gz CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.bz2 |
Merge topic 'reduce-string-copying'
2c2bb5f5 Remove unnecessary operator<< usage
1e4e2f99 Remove unused variables
25486156 Improved checking for number of arguments passed
86dc86dd Add const-reference qualifications
76bdb407 Change std::basic_string<char> to std::string
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !886
Diffstat (limited to 'Source/cmVariableRequiresCommand.cxx')
-rw-r--r-- | Source/cmVariableRequiresCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVariableRequiresCommand.cxx b/Source/cmVariableRequiresCommand.cxx index 10b0a88..06ca53c 100644 --- a/Source/cmVariableRequiresCommand.cxx +++ b/Source/cmVariableRequiresCommand.cxx @@ -17,11 +17,11 @@ bool cmVariableRequiresCommand::InitialPass( return false; } - std::string testVariable = args[0]; + std::string const& testVariable = args[0]; if (!this->Makefile->IsOn(testVariable)) { return true; } - std::string resultVariable = args[1]; + std::string const& resultVariable = args[1]; bool requirementsMet = true; std::string notSet; bool hasAdvanced = false; |