summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffpushbutton.h
diff options
context:
space:
mode:
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;
};