From fe660cdff59aa3a939479ed60172e5c0803552b2 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sun, 8 Jan 2017 18:21:23 +0100 Subject: 8.7 --- wx+/std_button_layout.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'wx+/std_button_layout.h') 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()); -- cgit