summaryrefslogtreecommitdiff
path: root/wx+/std_button_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/std_button_layout.h')
-rw-r--r--wx+/std_button_layout.h7
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());
bgstack15