diff options
| author | 2018-08-02 14:43:21 -0700 | |
|---|---|---|
| committer | 2018-08-02 14:43:21 -0700 | |
| commit | 4b22b34c698db8aa59343d0a5af89fc737532bce (patch) | |
| tree | 985c0e28dcdf5a497737690b50d31c4eb7bbda85 /runtime/interpreter/unstarted_runtime.cc | |
| parent | 9e53f5f19167848d043f91e6d20436e9b568b55a (diff) | |
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: Id869744db54b5b366454a5e13b467ac1f4df2845
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 22a6e9d941..9049b2bc7e 100644 --- a/runtime/interpreter/unstarted_runtime.cc +++ b/runtime/interpreter/unstarted_runtime.cc @@ -1965,7 +1965,7 @@ void UnstartedRuntime::Invoke(Thread* self, const CodeItemDataAccessor& accessor const auto& iter = invoke_handlers_.find(name); if (iter != invoke_handlers_.end()) { // Clear out the result in case it's not zeroed out. - result->SetL(0); + result->SetL(nullptr); // Push the shadow frame. This is so the failing method can be seen in abort dumps. self->PushShadowFrame(shadow_frame); @@ -1986,7 +1986,7 @@ void UnstartedRuntime::Jni(Thread* self, ArtMethod* method, mirror::Object* rece const auto& iter = jni_handlers_.find(name); if (iter != jni_handlers_.end()) { // Clear out the result in case it's not zeroed out. - result->SetL(0); + result->SetL(nullptr); (*iter->second)(self, method, receiver, args, result); } else if (Runtime::Current()->IsActiveTransaction()) { AbortTransactionF(self, "Attempt to invoke native method in non-started runtime: %s", |