summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffpushbutton.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-22 13:24:18 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-22 20:39:38 +0000
commit29bd35451003e58ef4be06413cce5544c16c395d (patch)
tree710bacc1f382d150f33a692412c6792f2d932ba0 /xfa/fxfa/app/xfa_ffpushbutton.h
parent3ae3033bff2582029984f91f40f4a8b748a30c96 (diff)
downloadpdfium-29bd35451003e58ef4be06413cce5544c16c395d.tar.xz
Use unique_ptr in xfa_ffpushbutton.h
Change-Id: I605c1219b1090eb13d22237fa1d61d9defe137d5 Reviewed-on: https://pdfium-review.googlesource.com/3151 Commit-Queue: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/app/xfa_ffpushbutton.h')
-rw-r--r--xfa/fxfa/app/xfa_ffpushbutton.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/xfa/fxfa/app/xfa_ffpushbutton.h b/xfa/fxfa/app/xfa_ffpushbutton.h
index 70853e8942..7e6e9e57d5 100644
--- a/xfa/fxfa/app/xfa_ffpushbutton.h
+++ b/xfa/fxfa/app/xfa_ffpushbutton.h
@@ -7,6 +7,8 @@
#ifndef XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
#define XFA_FXFA_APP_XFA_FFPUSHBUTTON_H_
+#include <memory>
+
#include "xfa/fxfa/app/xfa_fffield.h"
#define XFA_FWL_PSBSTYLEEXT_HiliteNone (0L << 0)
@@ -42,10 +44,10 @@ class CXFA_FFPushButton : public CXFA_FFField {
FX_ARGB GetLineColor();
FX_ARGB GetFillColor();
- CXFA_TextLayout* m_pRolloverTextLayout;
- CXFA_TextLayout* m_pDownTextLayout;
- CXFA_TextProvider* m_pDownProvider;
- CXFA_TextProvider* m_pRollProvider;
+ std::unique_ptr<CXFA_TextLayout> m_pRolloverTextLayout;
+ std::unique_ptr<CXFA_TextLayout> m_pDownTextLayout;
+ std::unique_ptr<CXFA_TextProvider> m_pRollProvider;
+ std::unique_ptr<CXFA_TextProvider> m_pDownProvider;
IFWL_WidgetDelegate* m_pOldDelegate;
};