summaryrefslogtreecommitdiffstats
path: root/runtime/reference_table.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-08-14 16:14:24 -0700
committerMathieu Chartier <mathieuc@google.com>2013-08-16 13:15:37 -0700
commit02e25119b15a6f619f17db99f5d05124a5807ff3 (patch)
tree7be4cbbf28033e5ee0621565b410fe5d8170a8fb /runtime/reference_table.cc
parent7d70a7932f0ba09eb01a93caab060aef1403d4e6 (diff)
downloadart-02e25119b15a6f619f17db99f5d05124a5807ff3.tar.gz
art-02e25119b15a6f619f17db99f5d05124a5807ff3.tar.bz2
art-02e25119b15a6f619f17db99f5d05124a5807ff3.zip
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/reference_table.cc')
-rw-r--r--runtime/reference_table.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/reference_table.cc b/runtime/reference_table.cc
index de64c26155..8e23cbb153 100644
--- a/runtime/reference_table.cc
+++ b/runtime/reference_table.cc
@@ -232,9 +232,8 @@ void ReferenceTable::Dump(std::ostream& os, const Table& entries) {
}
void ReferenceTable::VisitRoots(RootVisitor* visitor, void* arg) {
- typedef Table::const_iterator It; // TODO: C++0x auto
- for (It it = entries_.begin(), end = entries_.end(); it != end; ++it) {
- visitor(*it, arg);
+ for (const auto& ref : entries_) {
+ visitor(ref, arg);
}
}