From d4c34f208aa3b76c5941395823c6dcf6bb7e2f34 Mon Sep 17 00:00:00 2001 From: thestig Date: Wed, 28 Sep 2016 17:04:51 -0700 Subject: Replace std::unique_ptr.reset() with WrapUnique assignment. fpdfsdk/ edition. Review-Url: https://codereview.chromium.org/2381723002 --- fpdfsdk/pdfwindow/PWL_Wnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/pdfwindow/PWL_Wnd.cpp') diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/PWL_Wnd.cpp index adda0bbbc9..207157db7e 100644 --- a/fpdfsdk/pdfwindow/PWL_Wnd.cpp +++ b/fpdfsdk/pdfwindow/PWL_Wnd.cpp @@ -86,7 +86,7 @@ CPWL_TimerHandler::~CPWL_TimerHandler() {} void CPWL_TimerHandler::BeginTimer(int32_t nElapse) { if (!m_pTimer) - m_pTimer.reset(new CPWL_Timer(this, GetSystemHandler())); + m_pTimer = WrapUnique(new CPWL_Timer(this, GetSystemHandler())); if (m_pTimer) m_pTimer->SetPWLTimer(nElapse); -- cgit v1.2.3