From 3018c1c7323a1aa9fd89c7de5420ed925b5b6611 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 1 Jun 2018 16:41:23 +0000 Subject: Return unique_ptr from CPDFXFA_Context::GetTimerMgr() Proves ownership by avoiding a std::unique_ptr::reset() call. Change-Id: Ia6e11920d84dda49699736ef3189e58d240d409e Reviewed-on: https://pdfium-review.googlesource.com/33230 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- xfa/fwl/cfwl_timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fwl') diff --git a/xfa/fwl/cfwl_timer.cpp b/xfa/fwl/cfwl_timer.cpp index 597f928ba0..07d8461b9f 100644 --- a/xfa/fwl/cfwl_timer.cpp +++ b/xfa/fwl/cfwl_timer.cpp @@ -26,7 +26,7 @@ CFWL_TimerInfo* CFWL_Timer::StartTimer(uint32_t dwElapse, bool bImmediately) { return nullptr; if (!m_pTimeMgrAdapter) - m_pTimeMgrAdapter.reset(pAdapterNative->GetTimerMgr()); + m_pTimeMgrAdapter = pAdapterNative->GetTimerMgr(); if (!m_pTimeMgrAdapter) return nullptr; -- cgit v1.2.3