From 7ee2e53f741cc17f35a4fece5980e60fded93861 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 23 May 2016 10:55:48 -0700 Subject: Remove Release() from CFX_RTFBreak Use unique_ptrs in several places in xfa_textlayout.h Review-Url: https://codereview.chromium.org/2003843002 --- xfa/fgas/layout/fgas_rtfbreak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fgas/layout') diff --git a/xfa/fgas/layout/fgas_rtfbreak.h b/xfa/fgas/layout/fgas_rtfbreak.h index 966950f26c..be3717f584 100644 --- a/xfa/fgas/layout/fgas_rtfbreak.h +++ b/xfa/fgas/layout/fgas_rtfbreak.h @@ -246,7 +246,7 @@ class CFX_RTFBreak { public: CFX_RTFBreak(uint32_t dwPolicies); ~CFX_RTFBreak(); - void Release() { delete this; } + void SetLineBoundary(FX_FLOAT fLineStart, FX_FLOAT fLineEnd); void SetLineStartPos(FX_FLOAT fLinePos); uint32_t GetLayoutStyles() const { return m_dwLayoutStyles; } -- cgit v1.2.3