diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-26 10:54:15 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-26 11:55:10 -0700 |
commit | 7934ac288acfb2552bb0b06ec1f61e5820d924a4 (patch) | |
tree | 43f3acd8af7fd34d4ae7b64f6e06bb8429d74bb8 /runtime/intern_table.cc | |
parent | fb331d7ca004f39608fcfdae49d38df90c702ea9 (diff) | |
download | art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.zip art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.gz art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.bz2 |
Fix cpplint whitespace/comments issues
Change-Id: Iae286862c85fb8fd8901eae1204cd6d271d69496
Diffstat (limited to 'runtime/intern_table.cc')
-rw-r--r-- | runtime/intern_table.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/intern_table.cc b/runtime/intern_table.cc index d1ad2db..e2c1a64 100644 --- a/runtime/intern_table.cc +++ b/runtime/intern_table.cc @@ -40,7 +40,7 @@ void InternTable::DumpForSigQuit(std::ostream& os) const { void InternTable::VisitRoots(RootVisitor* visitor, void* arg, bool clean_dirty) { MutexLock mu(Thread::Current(), intern_table_lock_); - typedef Table::const_iterator It; // TODO: C++0x auto + typedef Table::const_iterator It; // TODO: C++0x auto for (It it = strong_interns_.begin(), end = strong_interns_.end(); it != end; ++it) { visitor(it->second, arg); } @@ -52,7 +52,7 @@ void InternTable::VisitRoots(RootVisitor* visitor, void* arg, bool clean_dirty) mirror::String* InternTable::Lookup(Table& table, mirror::String* s, uint32_t hash_code) { intern_table_lock_.AssertHeld(Thread::Current()); - typedef Table::const_iterator It; // TODO: C++0x auto + typedef Table::const_iterator It; // TODO: C++0x auto for (It it = table.find(hash_code), end = table.end(); it != end; ++it) { mirror::String* existing_string = it->second; if (existing_string->Equals(s)) { @@ -75,7 +75,7 @@ void InternTable::RegisterStrong(mirror::String* s) { void InternTable::Remove(Table& table, const mirror::String* s, uint32_t hash_code) { intern_table_lock_.AssertHeld(Thread::Current()); - typedef Table::iterator It; // TODO: C++0x auto + typedef Table::iterator It; // TODO: C++0x auto for (It it = table.find(hash_code), end = table.end(); it != end; ++it) { if (it->second == s) { table.erase(it); @@ -166,7 +166,7 @@ bool InternTable::ContainsWeak(mirror::String* s) { void InternTable::SweepInternTableWeaks(IsMarkedTester is_marked, void* arg) { MutexLock mu(Thread::Current(), intern_table_lock_); - typedef Table::iterator It; // TODO: C++0x auto + typedef Table::iterator It; // TODO: C++0x auto for (It it = weak_interns_.begin(), end = weak_interns_.end(); it != end;) { mirror::Object* object = it->second; if (!is_marked(object, arg)) { |