summaryrefslogtreecommitdiffstats
path: root/Source/cmWhileCommand.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/cmWhileCommand.cxx
parentd9ae0aaa29eb3c5361cf369fa96fe117cee9c427 (diff)
downloadCMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.zip
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.gz
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.bz2
ENH: reduce string construct delete ops
Diffstat (limited to 'Source/cmWhileCommand.cxx')
-rw-r--r--Source/cmWhileCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index f99a2da..eccd73e 100644
--- a/Source/cmWhileCommand.cxx
+++ b/Source/cmWhileCommand.cxx
@@ -28,12 +28,12 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
}
// at end of for each execute recorded commands
- if (cmSystemTools::LowerCase(lff.Name) == "while")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"while"))
{
// record the number of while commands past this one
this->Depth++;
}
- else if (cmSystemTools::LowerCase(lff.Name) == "endwhile")
+ else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endwhile"))
{
// if this is the endwhile for this while loop then execute
if (!this->Depth)
@@ -78,7 +78,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
bool cmWhileFunctionBlocker::
ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf)
{
- if(cmSystemTools::LowerCase(lff.Name) == "endwhile")
+ if(!cmSystemTools::Strucmp(lff.Name.c_str(),"endwhile"))
{
if (lff.Arguments == this->Args
|| mf.IsOn("CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS"))