diff options
author | 2015-03-18 10:39:00 -0700 | |
---|---|---|
committer | 2015-03-18 13:39:18 -0700 | |
commit | 47f867a0ae34d743f6159c2261e5b11e39693e15 (patch) | |
tree | 3b9129e77ab3e99b211fccc8ab2eba06d0c12957 /runtime/class_linker.cc | |
parent | a2b02f7bb474549ae356b5edfbb27a76e5460c58 (diff) |
Clean up hash set
Added vertical whitespace, const iterators, made some functions
const.
Change-Id: I188dc0384a98d6dae2822f0ac38b740f2356c23d
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 700e1adf91..0fb5c4af47 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -5255,7 +5255,7 @@ std::size_t ClassLinker::ClassDescriptorHashEquals::operator()(const GcRoot<mirr } bool ClassLinker::ClassDescriptorHashEquals::operator()(const GcRoot<mirror::Class>& a, - const GcRoot<mirror::Class>& b) { + const GcRoot<mirror::Class>& b) const { if (a.Read()->GetClassLoader() != b.Read()->GetClassLoader()) { return false; } @@ -5269,7 +5269,7 @@ std::size_t ClassLinker::ClassDescriptorHashEquals::operator()( } bool ClassLinker::ClassDescriptorHashEquals::operator()( - const GcRoot<mirror::Class>& a, const std::pair<const char*, mirror::ClassLoader*>& b) { + const GcRoot<mirror::Class>& a, const std::pair<const char*, mirror::ClassLoader*>& b) const { if (a.Read()->GetClassLoader() != b.second) { return false; } @@ -5277,7 +5277,7 @@ bool ClassLinker::ClassDescriptorHashEquals::operator()( } bool ClassLinker::ClassDescriptorHashEquals::operator()(const GcRoot<mirror::Class>& a, - const char* descriptor) { + const char* descriptor) const { return a.Read()->DescriptorEquals(descriptor); } |