summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-31 15:19:39 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-31 15:19:39 (GMT)
commitc88c75b8f2a7c15114c7880b7bdf59c4b069ff66 (patch)
tree90fcd21c216f95d4056ead19d2c0b2eafcaf12bb /Source/cmIfCommand.cxx
parentd9ae0aaa29eb3c5361cf369fa96fe117cee9c427 (diff)
downloadCMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.zip
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.gz
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.bz2
ENH: reduce string construct delete ops
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 2644857..e745735 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -23,18 +23,18 @@ bool cmIfFunctionBlocker::
IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
{
// always let if statements through
- if (cmSystemTools::LowerCase(lff.Name) == "if")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"if"))
{
return false;
}
// watch for our ELSE or ENDIF
- if (cmSystemTools::LowerCase(lff.Name) == "else" ||
- cmSystemTools::LowerCase(lff.Name) == "endif")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"else") ||
+ !cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
{
// if it was an else statement then we should change state
// and block this Else Command
- if (cmSystemTools::LowerCase(lff.Name) == "else")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"else"))
{
this->IsBlocking = !this->IsBlocking;
return true;
@@ -51,7 +51,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
bool cmIfFunctionBlocker::ShouldRemove(const cmListFileFunction& lff,
cmMakefile& mf)
{
- if (cmSystemTools::LowerCase(lff.Name) == "endif")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
{
if (mf.IsOn("CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS")
|| lff.Arguments == this->Args)