summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableRequiresCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVariableRequiresCommand.cxx')
-rw-r--r--Source/cmVariableRequiresCommand.cxx4
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;