Browse Source

cmSystemTools: Remove unnecessary comparison.

We already know the string is uppercase.
Stephen Kelly 10 years ago
parent
commit
d8639733a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmSystemTools.cxx

+ 1 - 1
Source/cmSystemTools.cxx

@@ -376,7 +376,7 @@ bool cmSystemTools::IsInternallyOn(const char* val)
     {
     *c = static_cast<char>(toupper(*c));
     }
-  return (v == "I_ON" || v == "i_on");
+  return v == "I_ON";
 }
 
 bool cmSystemTools::IsOn(const char* val)