diff options
author | 2019-03-27 16:41:41 +0000 | |
---|---|---|
committer | 2019-03-28 09:22:07 +0000 | |
commit | 0984e483c1b8033250a32b11f112ae3e65eef39b (patch) | |
tree | 267b4f59818e5080dff726adf25e5b5710111377 /runtime/interpreter/unstarted_runtime.cc | |
parent | 621c8807f38fedab56ea701370a18df123177f67 (diff) |
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
Diffstat (limited to 'runtime/interpreter/unstarted_runtime.cc')
-rw-r--r-- | runtime/interpreter/unstarted_runtime.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc index 46108cfb63..8b8567e94a 100644 --- a/runtime/interpreter/unstarted_runtime.cc +++ b/runtime/interpreter/unstarted_runtime.cc @@ -1403,13 +1403,13 @@ void UnstartedRuntime::UnstartedStringToCharArray( // This allows statically initializing ConcurrentHashMap and SynchronousQueue. void UnstartedRuntime::UnstartedReferenceGetReferent( Thread* self, ShadowFrame* shadow_frame, JValue* result, size_t arg_offset) { - ObjPtr<mirror::Reference> const ref = down_cast<mirror::Reference*>( + const ObjPtr<mirror::Reference> ref = down_cast<mirror::Reference*>( shadow_frame->GetVRegReference(arg_offset)); if (ref == nullptr) { AbortTransactionOrFail(self, "Reference.getReferent() with null object"); return; } - ObjPtr<mirror::Object> const referent = + const ObjPtr<mirror::Object> referent = Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(self, ref); result->SetL(referent); } |