if(): avoid one needless string compare for all if() statements

If it's known that it is an "if" it can't be an "elseif".
This commit is contained in:
Rolf Eike Beer 2015-02-22 13:48:30 +01:00
parent 5cf629c3bc
commit 51f8de8102
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ IsFunctionBlocked(const cmListFileFunction& lff,
{
this->ScopeDepth++;
}
if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
{
this->ScopeDepth--;
// if this is the endif for this if statement, then start executing