From 0984e483c1b8033250a32b11f112ae3e65eef39b Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 27 Mar 2019 16:41:41 +0000 Subject: Style cleanup for ObjPtr<>-ify changes. Replace "ObjPtr<.> const" with "const ObjPtr<.>". Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: I5a1c080bc88b091e15ee9eb0bb1ef6f6f290701c --- runtime/class_linker.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/class_linker.cc') diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 97234afc50..dde4f366de 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -2353,7 +2353,7 @@ class VisitClassLoaderClassesVisitor : public ClassLoaderVisitor { return (*visitor_)(klass); } - ObjPtr const defining_class_loader_; + const ObjPtr defining_class_loader_; ClassVisitor* const visitor_; }; @@ -4241,7 +4241,7 @@ ObjPtr ClassLinker::InsertClass(const char* descriptor, } { WriterMutexLock mu(Thread::Current(), *Locks::classlinker_classes_lock_); - ObjPtr const class_loader = klass->GetClassLoader(); + const ObjPtr class_loader = klass->GetClassLoader(); ClassTable* const class_table = InsertClassTableForClassLoader(class_loader); ObjPtr existing = class_table->Lookup(descriptor, hash); if (existing != nullptr) { @@ -5851,10 +5851,10 @@ bool ClassLinker::LinkClass(Thread* self, { WriterMutexLock mu(self, *Locks::classlinker_classes_lock_); - ObjPtr const class_loader = h_new_class.Get()->GetClassLoader(); + const ObjPtr class_loader = h_new_class.Get()->GetClassLoader(); ClassTable* const table = InsertClassTableForClassLoader(class_loader); - ObjPtr existing = table->UpdateClass(descriptor, h_new_class.Get(), - ComputeModifiedUtf8Hash(descriptor)); + const ObjPtr existing = + table->UpdateClass(descriptor, h_new_class.Get(), ComputeModifiedUtf8Hash(descriptor)); if (class_loader != nullptr) { // We updated the class in the class table, perform the write barrier so that the GC knows // about the change. -- cgit v1.2.3-59-g8ed1b