summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/cxfa_textlayout.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-01 15:58:32 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-03-01 21:30:26 +0000
commitb0d3160afa3ee0190b497d0eced5f5de1fdc8fbb (patch)
tree3edb89098b80b8c2dd5f0d08f9b0ac9710a34b9f /xfa/fxfa/app/cxfa_textlayout.h
parentbef73893d919514110cf3b724fad88965d9399e7 (diff)
downloadpdfium-b0d3160afa3ee0190b497d0eced5f5de1fdc8fbb.tar.xz
Change CreateBreak to return a unique_ptr
The value is always set into a unique_ptr, so return one and assign. Change-Id: Ieda649c8f86caf1344ca2ce342a141c3ab70aa0f Reviewed-on: https://pdfium-review.googlesource.com/2883 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/app/cxfa_textlayout.h')
-rw-r--r--xfa/fxfa/app/cxfa_textlayout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/app/cxfa_textlayout.h b/xfa/fxfa/app/cxfa_textlayout.h
index cbc7160c28..d4d60cf81e 100644
--- a/xfa/fxfa/app/cxfa_textlayout.h
+++ b/xfa/fxfa/app/cxfa_textlayout.h
@@ -65,7 +65,7 @@ class CXFA_TextLayout {
private:
void GetTextDataNode();
CFDE_XMLNode* GetXMLContainerNode();
- CFX_RTFBreak* CreateBreak(bool bDefault);
+ std::unique_ptr<CFX_RTFBreak> CreateBreak(bool bDefault);
void InitBreak(FX_FLOAT fLineWidth);
void InitBreak(CFDE_CSSComputedStyle* pStyle,
FDE_CSSDisplay eDisplay,