From fea77d88b8dc69f7885d8ff47cad29bc8f6089ab Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 31 Jul 2013 05:56:17 +0000 Subject: [PATCH] don't pass false as a wxWindowID git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/clrpicker.cpp | 4 ++-- samples/widgets/dirpicker.cpp | 8 ++++---- samples/widgets/filepicker.cpp | 10 +++++----- samples/widgets/fontpicker.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/samples/widgets/clrpicker.cpp b/samples/widgets/clrpicker.cpp index 9ce4889bab..39a91f109b 100644 --- a/samples/widgets/clrpicker.cpp +++ b/samples/widgets/clrpicker.cpp @@ -143,8 +143,8 @@ void ColourPickerWidgetsPage::CreateContent() wxSizer *boxleft = new wxBoxSizer(wxVERTICAL); wxStaticBoxSizer *clrbox = new wxStaticBoxSizer(wxVERTICAL, this, wxT("&ColourPicker style")); - m_chkColourTextCtrl = CreateCheckBoxAndAddToSizer(clrbox, wxT("With textctrl"), false); - m_chkColourShowLabel = CreateCheckBoxAndAddToSizer(clrbox, wxT("With label"), false); + m_chkColourTextCtrl = CreateCheckBoxAndAddToSizer(clrbox, wxT("With textctrl")); + m_chkColourShowLabel = CreateCheckBoxAndAddToSizer(clrbox, wxT("With label")); boxleft->Add(clrbox, 0, wxALL|wxGROW, 5); boxleft->Add(new wxButton(this, PickerPage_Reset, wxT("&Reset")), diff --git a/samples/widgets/dirpicker.cpp b/samples/widgets/dirpicker.cpp index b60cb7833d..598c87560e 100644 --- a/samples/widgets/dirpicker.cpp +++ b/samples/widgets/dirpicker.cpp @@ -152,10 +152,10 @@ void DirPickerWidgetsPage::CreateContent() wxSizer *boxleft = new wxBoxSizer(wxVERTICAL); wxStaticBoxSizer *dirbox = new wxStaticBoxSizer(wxVERTICAL, this, wxT("&DirPicker style")); - m_chkDirTextCtrl = CreateCheckBoxAndAddToSizer(dirbox, wxT("With textctrl"), false); - m_chkDirMustExist = CreateCheckBoxAndAddToSizer(dirbox, wxT("Dir must exist"), false); - m_chkDirChangeDir = CreateCheckBoxAndAddToSizer(dirbox, wxT("Change working dir"), false); - m_chkSmall = CreateCheckBoxAndAddToSizer(dirbox, "&Small version", false); + m_chkDirTextCtrl = CreateCheckBoxAndAddToSizer(dirbox, wxT("With textctrl")); + m_chkDirMustExist = CreateCheckBoxAndAddToSizer(dirbox, wxT("Dir must exist")); + m_chkDirChangeDir = CreateCheckBoxAndAddToSizer(dirbox, wxT("Change working dir")); + m_chkSmall = CreateCheckBoxAndAddToSizer(dirbox, "&Small version"); boxleft->Add(dirbox, 0, wxALL|wxGROW, 5); boxleft->Add(CreateSizerWithTextAndButton diff --git a/samples/widgets/filepicker.cpp b/samples/widgets/filepicker.cpp index 16139f3942..9d843c505a 100644 --- a/samples/widgets/filepicker.cpp +++ b/samples/widgets/filepicker.cpp @@ -175,11 +175,11 @@ void FilePickerWidgetsPage::CreateContent() boxleft->Add(m_radioFilePickerMode, 0, wxALL|wxGROW, 5); wxStaticBoxSizer *filebox = new wxStaticBoxSizer(wxVERTICAL, this, wxT("&FilePicker style")); - m_chkFileTextCtrl = CreateCheckBoxAndAddToSizer(filebox, wxT("With textctrl"), false); - m_chkFileOverwritePrompt = CreateCheckBoxAndAddToSizer(filebox, wxT("Overwrite prompt"), false); - m_chkFileMustExist = CreateCheckBoxAndAddToSizer(filebox, wxT("File must exist"), false); - m_chkFileChangeDir = CreateCheckBoxAndAddToSizer(filebox, wxT("Change working dir"), false); - m_chkSmall = CreateCheckBoxAndAddToSizer(filebox, "&Small version", false); + m_chkFileTextCtrl = CreateCheckBoxAndAddToSizer(filebox, wxT("With textctrl")); + m_chkFileOverwritePrompt = CreateCheckBoxAndAddToSizer(filebox, wxT("Overwrite prompt")); + m_chkFileMustExist = CreateCheckBoxAndAddToSizer(filebox, wxT("File must exist")); + m_chkFileChangeDir = CreateCheckBoxAndAddToSizer(filebox, wxT("Change working dir")); + m_chkSmall = CreateCheckBoxAndAddToSizer(filebox, "&Small version"); boxleft->Add(filebox, 0, wxALL|wxGROW, 5); diff --git a/samples/widgets/fontpicker.cpp b/samples/widgets/fontpicker.cpp index 06dd674e65..c4f710e241 100644 --- a/samples/widgets/fontpicker.cpp +++ b/samples/widgets/fontpicker.cpp @@ -146,7 +146,7 @@ void FontPickerWidgetsPage::CreateContent() wxStaticBoxSizer *fontbox = new wxStaticBoxSizer(wxVERTICAL, this, wxT("&FontPicker style")); m_chkFontTextCtrl = CreateCheckBoxAndAddToSizer(fontbox, wxT("With textctrl")); m_chkFontDescAsLabel = CreateCheckBoxAndAddToSizer(fontbox, wxT("Font desc as btn label")); - m_chkFontUseFontForLabel = CreateCheckBoxAndAddToSizer(fontbox, wxT("Use font for label"), false); + m_chkFontUseFontForLabel = CreateCheckBoxAndAddToSizer(fontbox, wxT("Use font for label")); boxleft->Add(fontbox, 0, wxALL|wxGROW, 5); boxleft->Add(new wxButton(this, PickerPage_Reset, wxT("&Reset")), -- 2.45.2