summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.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/cmMacroCommand.cxx
parentd9ae0aaa29eb3c5361cf369fa96fe117cee9c427 (diff)
downloadCMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.zip
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.gz
CMake-c88c75b8f2a7c15114c7880b7bdf59c4b069ff66.tar.bz2
ENH: reduce string construct delete ops
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index ca86b3b..e4de342 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -252,11 +252,11 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
{
// record commands until we hit the ENDMACRO
// at the ENDMACRO call we shift gears and start looking for invocations
- if(cmSystemTools::LowerCase(lff.Name) == "macro")
+ if(!cmSystemTools::Strucmp(lff.Name.c_str(),"macro"))
{
this->Depth++;
}
- else if(cmSystemTools::LowerCase(lff.Name) == "endmacro")
+ else if(!cmSystemTools::Strucmp(lff.Name.c_str(),"endmacro"))
{
// if this is the endmacro for this macro then execute
if (!this->Depth)
@@ -300,7 +300,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)
bool cmMacroFunctionBlocker::
ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf)
{
- if(cmSystemTools::LowerCase(lff.Name) == "endmacro")
+ if(!cmSystemTools::Strucmp(lff.Name.c_str(),"endmacro"))
{
std::vector<std::string> expandedArguments;
mf.ExpandArguments(lff.Arguments, expandedArguments);