diff options
-rw-r--r-- | fpdfsdk/cpdfsdk_fieldaction.cpp | 12 | ||||
-rw-r--r-- | fpdfsdk/cpdfsdk_fieldaction.h | 17 |
2 files changed, 12 insertions, 17 deletions
diff --git a/fpdfsdk/cpdfsdk_fieldaction.cpp b/fpdfsdk/cpdfsdk_fieldaction.cpp index 352da391df..57fa1b608b 100644 --- a/fpdfsdk/cpdfsdk_fieldaction.cpp +++ b/fpdfsdk/cpdfsdk_fieldaction.cpp @@ -6,12 +6,6 @@ #include "fpdfsdk/cpdfsdk_fieldaction.h" -CPDFSDK_FieldAction::CPDFSDK_FieldAction() - : bModifier(false), - bShift(false), - bKeyDown(false), - nSelEnd(0), - nSelStart(0), - bWillCommit(false), - bFieldFull(false), - bRC(true) {} +CPDFSDK_FieldAction::CPDFSDK_FieldAction() = default; + +CPDFSDK_FieldAction::~CPDFSDK_FieldAction() = default; diff --git a/fpdfsdk/cpdfsdk_fieldaction.h b/fpdfsdk/cpdfsdk_fieldaction.h index 36a57e55d2..7c24121216 100644 --- a/fpdfsdk/cpdfsdk_fieldaction.h +++ b/fpdfsdk/cpdfsdk_fieldaction.h @@ -21,18 +21,19 @@ typedef enum { struct CPDFSDK_FieldAction { CPDFSDK_FieldAction(); CPDFSDK_FieldAction(const CPDFSDK_FieldAction& other) = delete; + ~CPDFSDK_FieldAction(); - bool bModifier; - bool bShift; + bool bModifier = false; + bool bShift = false; + bool bKeyDown = false; + bool bWillCommit = false; + bool bFieldFull = false; + bool bRC = true; + int nSelEnd = 0; + int nSelStart = 0; WideString sChange; WideString sChangeEx; - bool bKeyDown; - int nSelEnd; - int nSelStart; WideString sValue; - bool bWillCommit; - bool bFieldFull; - bool bRC; }; #endif // FPDFSDK_CPDFSDK_FIELDACTION_H_ |