summaryrefslogtreecommitdiff
path: root/Source/cmForEachCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-31 11:19:39 -0400
committerKen Martin <ken.martin@kitware.com>2006-05-31 11:19:39 -0400
commitc88c75b8f2a7c15114c7880b7bdf59c4b069ff66 (patch)
tree90fcd21c216f95d4056ead19d2c0b2eafcaf12bb /Source/cmForEachCommand.cxx
parentd9ae0aaa29eb3c5361cf369fa96fe117cee9c427 (diff)
downloadcmake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.gz
ENH: reduce string construct delete ops
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r--Source/cmForEachCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index 5f03c43acf..0d9bc7a72f 100644
--- a/Source/cmForEachCommand.cxx
+++ b/Source/cmForEachCommand.cxx
@@ -26,12 +26,12 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
return false;
}
- if (cmSystemTools::LowerCase(lff.Name) == "foreach")
+ if (!cmSystemTools::Strucmp(lff.Name.c_str(),"foreach"))
{
// record the number of nested foreach commands
this->Depth++;
}
- else if (cmSystemTools::LowerCase(lff.Name) == "endforeach")
+ else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endforeach"))
{
// if this is the endofreach for this statement
if (!this->Depth)
@@ -81,7 +81,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
bool cmForEachFunctionBlocker::
ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf)
{
- if(cmSystemTools::LowerCase(lff.Name) == "endforeach")
+ if(!cmSystemTools::Strucmp(lff.Name.c_str(),"endforeach"))
{
std::vector<std::string> expandedArguments;
mf.ExpandArguments(lff.Arguments, expandedArguments);