diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2015-02-22 13:48:30 +0100 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2015-02-22 13:48:30 +0100 |
commit | 51f8de810223139ea0dcb7bafcabe12fc8e075c1 (patch) | |
tree | ff0b3cc336e5ed59a8a70f7fe6b9f868b1638080 /Source/cmIfCommand.cxx | |
parent | 5cf629c3bc0c7a15d363d6d60e8c3cc04c0618f2 (diff) | |
download | cmake-51f8de810223139ea0dcb7bafcabe12fc8e075c1.tar.gz |
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".
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 3362abbb0d..6dea5c17cf 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -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 |