diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-23 12:44:14 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-24 11:29:48 (GMT) |
commit | 550e08b012a67a20d4c71cb9e0b3aafadd265012 (patch) | |
tree | 46126b08438ad27f28a1975b4b695db9103952f9 /Source/cmLocalGhsMultiGenerator.cxx | |
parent | d34467cd5843bc2ceb7cbde288c6cb0d8e2188ca (diff) | |
download | CMake-550e08b012a67a20d4c71cb9e0b3aafadd265012.zip CMake-550e08b012a67a20d4c71cb9e0b3aafadd265012.tar.gz CMake-550e08b012a67a20d4c71cb9e0b3aafadd265012.tar.bz2 |
GHS: Remove unnecessary condition.
Diffstat (limited to 'Source/cmLocalGhsMultiGenerator.cxx')
-rw-r--r-- | Source/cmLocalGhsMultiGenerator.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmLocalGhsMultiGenerator.cxx b/Source/cmLocalGhsMultiGenerator.cxx index a537265..9705803 100644 --- a/Source/cmLocalGhsMultiGenerator.cxx +++ b/Source/cmLocalGhsMultiGenerator.cxx @@ -27,13 +27,11 @@ cmLocalGhsMultiGenerator::~cmLocalGhsMultiGenerator() {} void cmLocalGhsMultiGenerator::Generate() { cmGeneratorTargetsType tgts = this->GetMakefile()->GetGeneratorTargets(); - if (!tgts.empty()) + + for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end(); + ++l) { - for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end(); - ++l) - { - cmGhsMultiTargetGenerator tg(l->second->Target); - tg.Generate(); - } + cmGhsMultiTargetGenerator tg(l->second->Target); + tg.Generate(); } } |