summaryrefslogtreecommitdiffstats
path: root/Source/cmConditionEvaluator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-08 14:45:25 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-08 14:45:43 (GMT)
commitaff4a5fab543ab7dfb87d1d12961c85a28022a2b (patch)
treeeae7d7b0144eb31561b25436ee71349fbd7880d7 /Source/cmConditionEvaluator.cxx
parent5c324294ce8488537c68085b187c9fe2a51664c4 (diff)
downloadCMake-aff4a5fab543ab7dfb87d1d12961c85a28022a2b.zip
CMake-aff4a5fab543ab7dfb87d1d12961c85a28022a2b.tar.gz
CMake-aff4a5fab543ab7dfb87d1d12961c85a28022a2b.tar.bz2
cmConditionEvaluator: Use pre-allocated keywords in more places
Inspired-by: Harry Mallon <Harry@codexdigital.com>
Diffstat (limited to 'Source/cmConditionEvaluator.cxx')
-rw-r--r--Source/cmConditionEvaluator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx
index 305ebe3..e63f486 100644
--- a/Source/cmConditionEvaluator.cxx
+++ b/Source/cmConditionEvaluator.cxx
@@ -682,11 +682,11 @@ bool cmConditionEvaluator::HandleLevel2(cmArgumentList &newArgs,
{
result = false;
}
- else if (*(argP1) == "LESS")
+ else if (*(argP1) == keyLESS)
{
result = (lhs < rhs);
}
- else if (*(argP1) == "GREATER")
+ else if (*(argP1) == keyGREATER)
{
result = (lhs > rhs);
}
@@ -707,11 +707,11 @@ bool cmConditionEvaluator::HandleLevel2(cmArgumentList &newArgs,
def2 = this->GetVariableOrString(*argP2);
int val = strcmp(def,def2);
bool result;
- if (*(argP1) == "STRLESS")
+ if (*(argP1) == keySTRLESS)
{
result = (val < 0);
}
- else if (*(argP1) == "STRGREATER")
+ else if (*(argP1) == keySTRGREATER)
{
result = (val > 0);
}