diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-08-14 16:14:24 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-08-16 13:15:37 -0700 |
commit | 02e25119b15a6f619f17db99f5d05124a5807ff3 (patch) | |
tree | 7be4cbbf28033e5ee0621565b410fe5d8170a8fb /runtime/indirect_reference_table.cc | |
parent | 7d70a7932f0ba09eb01a93caab060aef1403d4e6 (diff) | |
download | art-02e25119b15a6f619f17db99f5d05124a5807ff3.zip art-02e25119b15a6f619f17db99f5d05124a5807ff3.tar.gz art-02e25119b15a6f619f17db99f5d05124a5807ff3.tar.bz2 |
Fix up TODO: c++0x, update cpplint.
Needed to update cpplint to handle const auto.
Fixed a few cpplint errors that were being missed before.
Replaced most of the TODO c++0x with ranged based loops. Loops which
do not have a descriptive container name have a concrete type instead
of auto.
Change-Id: Id7cc0f27030f56057c544e94277300b3f298c9c5
Diffstat (limited to 'runtime/indirect_reference_table.cc')
-rw-r--r-- | runtime/indirect_reference_table.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc index 3e75716..8af4d7e 100644 --- a/runtime/indirect_reference_table.cc +++ b/runtime/indirect_reference_table.cc @@ -309,9 +309,8 @@ bool IndirectReferenceTable::Remove(uint32_t cookie, IndirectRef iref) { } void IndirectReferenceTable::VisitRoots(RootVisitor* visitor, void* arg) { - typedef IndirectReferenceTable::iterator It; // TODO: C++0x auto - for (It it = begin(), end = this->end(); it != end; ++it) { - visitor(**it, arg); + for (auto ref : *this) { + visitor(*ref, arg); } } |