diff options
author | Matthias Maennich <matthias@maennich.net> | 2017-09-20 23:44:34 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 07:23:43 -0400 |
commit | f0bab294dcd3f2c4f3be5e491426b5eefb2a9aba (patch) | |
tree | c50347984fbb1086cd99de7b440dad6f72070f5b /Source/cmXCodeObject.h | |
parent | b5d7f5b0e8490a66cdd603e0ee38890426b3b6c4 (diff) | |
download | cmake-f0bab294dcd3f2c4f3be5e491426b5eefb2a9aba.tar.gz |
Convert some leftover loops to C++11 range-based loop
Fix issues diagnosed by clang-tidy [modern-loop-convert]
Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index 22ec61b6e2..b0f1d31af2 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -119,9 +119,7 @@ public: // search the attribute list for an object of the specified type cmXCodeObject* GetObject(cmXCodeObject::PBXType t) const { - for (std::vector<cmXCodeObject*>::const_iterator i = this->List.begin(); - i != this->List.end(); ++i) { - cmXCodeObject* o = *i; + for (auto o : this->List) { if (o->IsA == t) { return o; } |