diff options
author | Brad King <brad.king@kitware.com> | 2013-01-03 18:53:11 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-01-03 18:53:11 (GMT) |
commit | 690d6baece0e5187f2bd57f8e6ff58f2ab4a57a5 (patch) | |
tree | f212ad9deb621380df6e310f604e4938d8f05e56 | |
parent | 60cf243fc137b5602b034d3789b0eb47e041ee67 (diff) | |
parent | 7d736af60e554e32115fdc188140fd63232d09c9 (diff) | |
download | CMake-690d6baece0e5187f2bd57f8e6ff58f2ab4a57a5.zip CMake-690d6baece0e5187f2bd57f8e6ff58f2ab4a57a5.tar.gz CMake-690d6baece0e5187f2bd57f8e6ff58f2ab4a57a5.tar.bz2 |
Merge topic 'genex-cleanup'
7d736af Replace some 'if' with 'else if'
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 102927e..3b7cfc0 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -553,13 +553,13 @@ cmGeneratorExpressionNode* GetNode(const std::string &identifier) { if (identifier == "0") return &zeroNode; - if (identifier == "1") + else if (identifier == "1") return &oneNode; - if (identifier == "AND") + else if (identifier == "AND") return &andNode; - if (identifier == "OR") + else if (identifier == "OR") return &orNode; - if (identifier == "NOT") + else if (identifier == "NOT") return ¬Node; else if (identifier == "CONFIGURATION") return &configurationNode; |