summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pwl/cpwl_button.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_button.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/fpdfsdk/pwl/cpwl_button.cpp b/fpdfsdk/pwl/cpwl_button.cpp
index bdf56a21ae..766e8c49ad 100644
--- a/fpdfsdk/pwl/cpwl_button.cpp
+++ b/fpdfsdk/pwl/cpwl_button.cpp
@@ -6,11 +6,14 @@
#include "fpdfsdk/pwl/cpwl_button.h"
+#include <utility>
+
#include "fpdfsdk/pwl/cpwl_wnd.h"
-CPWL_Button::CPWL_Button() : m_bMouseDown(false) {}
+CPWL_Button::CPWL_Button(std::unique_ptr<PrivateData> pAttachedData)
+ : CPWL_Wnd(std::move(pAttachedData)) {}
-CPWL_Button::~CPWL_Button() {}
+CPWL_Button::~CPWL_Button() = default;
void CPWL_Button::OnCreate(CreateParams* pParamsToAdjust) {
pParamsToAdjust->eCursorType = FXCT_HAND;