diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2017-01-08 18:21:23 +0100 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2017-01-08 18:21:23 +0100 |
commit | fe660cdff59aa3a939479ed60172e5c0803552b2 (patch) | |
tree | 045cf295b79de10f75ed6362c5836db25c9fc63a /wx+/std_button_layout.h | |
parent | 8.6 (diff) | |
download | FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.tar.gz FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.tar.bz2 FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.zip |
8.7
Diffstat (limited to 'wx+/std_button_layout.h')
-rw-r--r-- | wx+/std_button_layout.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wx+/std_button_layout.h b/wx+/std_button_layout.h index 59fda260..3e335882 100644 --- a/wx+/std_button_layout.h +++ b/wx+/std_button_layout.h @@ -16,14 +16,13 @@ namespace zen { struct StdButtons { - StdButtons() : btnYes(nullptr), btnNo(nullptr), btnCancel(nullptr) {} StdButtons& setAffirmative (wxButton* btn) { btnYes = btn; return *this; } StdButtons& setNegative (wxButton* btn) { btnNo = btn; return *this; } StdButtons& setCancel (wxButton* btn) { btnCancel = btn; return *this; } - wxButton* btnYes; - wxButton* btnNo; - wxButton* btnCancel; + wxButton* btnYes = nullptr; + wxButton* btnNo = nullptr; + wxButton* btnCancel = nullptr; }; void setStandardButtonLayout(wxBoxSizer& sizer, const StdButtons& buttons = StdButtons()); |