summaryrefslogtreecommitdiffstats
path: root/runtime/indirect_reference_table.h
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/indirect_reference_table.h
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/indirect_reference_table.h')
-rw-r--r--runtime/indirect_reference_table.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/indirect_reference_table.h b/runtime/indirect_reference_table.h
index 97706b82bb..26f53db4ad 100644
--- a/runtime/indirect_reference_table.h
+++ b/runtime/indirect_reference_table.h
@@ -248,8 +248,6 @@ bool inline operator!=(const IrtIterator& lhs, const IrtIterator& rhs) {
class IndirectReferenceTable {
public:
- typedef IrtIterator iterator;
-
IndirectReferenceTable(size_t initialCount, size_t maxCount, IndirectRefKind kind);
~IndirectReferenceTable();
@@ -301,12 +299,12 @@ class IndirectReferenceTable {
return segment_state_.parts.topIndex;
}
- iterator begin() {
- return iterator(table_, 0, Capacity());
+ IrtIterator begin() {
+ return IrtIterator(table_, 0, Capacity());
}
- iterator end() {
- return iterator(table_, Capacity(), Capacity());
+ IrtIterator end() {
+ return IrtIterator(table_, Capacity(), Capacity());
}
void VisitRoots(RootVisitor* visitor, void* arg);