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/mirror/object-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/mirror/object-inl.h') diff --git a/runtime/mirror/object-inl.h b/runtime/mirror/object-inl.h index 814d86a3e9..3fa5d8074d 100644 --- a/runtime/mirror/object-inl.h +++ b/runtime/mirror/object-inl.h @@ -197,9 +197,9 @@ template 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 klass = GetClass(); + const ObjPtr klass = GetClass(); constexpr VerifyObjectFlags kNewFlags = RemoveThisFlags(kVerifyFlags); - ObjPtr const component_type = klass->GetComponentType(); + const ObjPtr component_type = klass->GetComponentType(); return component_type != nullptr && component_type->GetPrimitiveType() == kType; } -- cgit v1.2.3-59-g8ed1b