From a0a69233cafa0ec22fd6c776851e3ee069ca66bf Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 1 May 2017 11:39:33 -0700 Subject: Remove more |new|s, part 5 Many of these are already unique_ptrs. Change-Id: I3695d4ff5a8f7483ad994ac7657897fd55069cd5 Reviewed-on: https://pdfium-review.googlesource.com/4690 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fwl/cfwl_caret.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fwl') diff --git a/xfa/fwl/cfwl_caret.cpp b/xfa/fwl/cfwl_caret.cpp index da57cb408c..a6ea9ddb56 100644 --- a/xfa/fwl/cfwl_caret.cpp +++ b/xfa/fwl/cfwl_caret.cpp @@ -25,7 +25,7 @@ CFWL_Caret::CFWL_Caret(const CFWL_App* app, std::unique_ptr properties, CFWL_Widget* pOuter) : CFWL_Widget(app, std::move(properties), pOuter), - m_pTimer(new CFWL_Caret::Timer(this)), + m_pTimer(pdfium::MakeUnique(this)), m_pTimerInfo(nullptr) { SetStates(FWL_STATE_CAT_HightLight); } -- cgit v1.2.3