Forráskód Böngészése

cmConditionEvaluator: Use pre-allocated keywords in more places

Inspired-by: Harry Mallon <[email protected]>
Brad King 9 éve
szülő
commit
aff4a5fab5
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      Source/cmConditionEvaluator.cxx

+ 4 - 4
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);
           }