From 41c911f23117fc691fea31f2f6a4b3c9a550762b Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 19 Nov 2018 11:34:16 -0800 Subject: ART: Fix misc-uniqueptr-reset-release Bug: 32619234 Test: m test-art-host Change-Id: Iffed77347180aca0f356a03db02ddbe0200b1e9c --- runtime/class_loader_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc index 0bae60a886..4eacdad747 100644 --- a/runtime/class_loader_context.cc +++ b/runtime/class_loader_context.cc @@ -304,11 +304,11 @@ ClassLoaderContext::ClassLoaderInfo* ClassLoaderContext::ParseInternal( return nullptr; } if (first == nullptr) { - first.reset(info.release()); + first = std::move(info); previous_iteration = first.get(); } else { CHECK(previous_iteration != nullptr); - previous_iteration->parent.reset(info.release()); + previous_iteration->parent = std::move(info); previous_iteration = previous_iteration->parent.get(); } } -- cgit v1.2.3-59-g8ed1b