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
diff --git a/runtime/mirror/object-inl.h b/runtime/mirror/object-inl.h
index 814d86a..3fa5d80 100644
--- a/runtime/mirror/object-inl.h
+++ b/runtime/mirror/object-inl.h
@@ -197,9 +197,9 @@
ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() {
// We do not need a read barrier here as the primitive type is constant, both from-space
// and to-space component type classes shall yield the same result. See ReadBarrierOption.
- ObjPtr<Class> klass = GetClass<kVerifyFlags, kWithoutReadBarrier>();
+ const ObjPtr<Class> klass = GetClass<kVerifyFlags, kWithoutReadBarrier>();
constexpr VerifyObjectFlags kNewFlags = RemoveThisFlags(kVerifyFlags);
- ObjPtr<Class> const component_type = klass->GetComponentType<kNewFlags, kWithoutReadBarrier>();
+ const ObjPtr<Class> component_type = klass->GetComponentType<kNewFlags, kWithoutReadBarrier>();
return component_type != nullptr &&
component_type->GetPrimitiveType<kNewFlags>() == kType;
}