diff --git a/samples/stc/edit.cpp b/samples/stc/edit.cpp index 7e7f412ec2..e9aeac9990 100644 --- a/samples/stc/edit.cpp +++ b/samples/stc/edit.cpp @@ -125,8 +125,6 @@ Edit::Edit (wxWindow *parent, wxWindowID id, long style) : wxStyledTextCtrl (parent, id, pos, size, style) { - m_filename = wxEmptyString; - m_LineNrID = 0; m_DividerID = 1; m_FoldingID = 2; @@ -760,7 +758,7 @@ EditProperties::EditProperties (Edit *edit, text = wxString::Format ("%d", edit->GetLexer()); textinfo->Add (new wxStaticText (this, wxID_ANY, text), 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4); - wxString EOLtype = wxEmptyString; + wxString EOLtype; switch (edit->GetEOLMode()) { case wxSTC_EOL_CR: {EOLtype = "CR (Unix)"; break; } case wxSTC_EOL_CRLF: {EOLtype = "CRLF (Windows)"; break; } diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index 122626f4fe..e3d6c9a276 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -362,7 +362,7 @@ void AppFrame::OnFileSave (wxCommandEvent &WXUNUSED(event)) { void AppFrame::OnFileSaveAs (wxCommandEvent &WXUNUSED(event)) { if (!m_edit) return; #if wxUSE_FILEDLG - wxString filename = wxEmptyString; + wxString filename; wxFileDialog dlg (this, "Save file", wxEmptyString, wxEmptyString, "Any file (*)|*", wxFD_SAVE|wxFD_OVERWRITE_PROMPT); if (dlg.ShowModal() != wxID_OK) return; filename = dlg.GetPath(); diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 98d0fea071..60160c56ce 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -322,7 +322,6 @@ WebFrame::WebFrame(const wxString& url) : // Set find values. m_findFlags = wxWEBVIEW_FIND_DEFAULT; - m_findText = wxEmptyString; m_findCount = 0; // Create panel for find toolbar. diff --git a/samples/widgets/bmpcombobox.cpp b/samples/widgets/bmpcombobox.cpp index 92df5cb2b1..71a1d20ca4 100644 --- a/samples/widgets/bmpcombobox.cpp +++ b/samples/widgets/bmpcombobox.cpp @@ -714,7 +714,7 @@ void BitmapComboBoxWidgetsPage::LoadWidgetImages( wxArrayString* strings, wxImag wxBitmap bmp(image); wxASSERT( bmp.IsOk() ); #else - wxBitmap bmp(wxNullBitmap); + wxBitmap bmp; #endif images->Add(bmp); (*strings)[i] = name; diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index db245edd4b..9074f6d892 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -612,7 +612,6 @@ wxAuiManager::wxAuiManager(wxWindow* managed_wnd, unsigned int flags) { m_action = actionNone; m_actionWindow = NULL; - m_lastMouseMove = wxPoint(); m_hoverButton = NULL; m_art = new wxAuiDefaultDockArt; m_hintWnd = NULL; diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 09b2f3a020..e54d318815 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -63,8 +63,6 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #if wxUSE_MENUS m_commandEditMenu = NULL; #endif // wxUSE_MENUS - m_lastSavedCommand = - m_currentCommand = wxList::compatibility_iterator(); } wxCommandProcessor::~wxCommandProcessor() diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index e0d5c1900c..e3849e3326 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -120,7 +120,6 @@ void wxSplitterWindow::Init() m_sashPosition = 0; m_requestedSashPosition = INT_MAX; m_sashGravity = 0.0; - m_lastSize = wxSize(0,0); m_minimumPaneSize = 0; m_sashCursorWE = wxCursor(wxCURSOR_SIZEWE); m_sashCursorNS = wxCursor(wxCURSOR_SIZENS); diff --git a/src/msw/imaglist.cpp b/src/msw/imaglist.cpp index 33828288a4..b710efaac8 100644 --- a/src/msw/imaglist.cpp +++ b/src/msw/imaglist.cpp @@ -70,7 +70,6 @@ static HBITMAP GetMaskForImage(const wxBitmap& bitmap, const wxBitmap& mask); wxImageList::wxImageList() { m_hImageList = 0; - m_size = wxSize(0,0); } // Creates an image list diff --git a/src/ribbon/page.cpp b/src/ribbon/page.cpp index 93b89c4e5b..a97b002c4b 100644 --- a/src/ribbon/page.cpp +++ b/src/ribbon/page.cpp @@ -198,7 +198,6 @@ void wxRibbonPage::CommonInit(const wxString& label, const wxBitmap& icon) SetName(label); SetLabel(label); - m_old_size = wxSize(0, 0); m_icon = icon; m_scroll_left_btn = NULL; m_scroll_right_btn = NULL; diff --git a/src/ribbon/toolbar.cpp b/src/ribbon/toolbar.cpp index 43e0490e62..64ed956ad7 100644 --- a/src/ribbon/toolbar.cpp +++ b/src/ribbon/toolbar.cpp @@ -112,7 +112,6 @@ void wxRibbonToolBar::CommonInit(long WXUNUSED(style)) m_nrows_min = 1; m_nrows_max = 1; m_sizes = new wxSize[1]; - m_sizes[0] = wxSize(0, 0); SetBackgroundStyle(wxBG_STYLE_PAINT); } @@ -259,8 +258,6 @@ wxRibbonToolBarToolBase* wxRibbonToolBar::InsertTool( tool->help_string = help_string; tool->kind = kind; tool->client_data = client_data; - tool->position = wxPoint(0, 0); - tool->size = wxSize(0, 0); tool->state = 0; // Find the position where insert tool @@ -318,8 +315,6 @@ wxRibbonToolBarToolBase* wxRibbonToolBar::InsertSeparator(size_t pos) wxRibbonToolBarToolGroup* wxRibbonToolBar::InsertGroup(size_t pos) { wxRibbonToolBarToolGroup* group = new wxRibbonToolBarToolGroup; - group->position = wxPoint(0, 0); - group->size = wxSize(0, 0); m_groups.Insert(group, pos); return group; } @@ -525,8 +520,6 @@ wxBitmap wxRibbonToolBar::MakeDisabledBitmap(const wxBitmap& original) void wxRibbonToolBar::AppendGroup() { wxRibbonToolBarToolGroup* group = new wxRibbonToolBarToolGroup; - group->position = wxPoint(0, 0); - group->size = wxSize(0, 0); m_groups.Add(group); } @@ -723,8 +716,6 @@ void wxRibbonToolBar::SetRows(int nMin, int nMax) delete[] m_sizes; m_sizes = new wxSize[m_nrows_max - m_nrows_min + 1]; - for(int i = m_nrows_min; i <= m_nrows_max; ++i) - m_sizes[i - m_nrows_min] = wxSize(0, 0); Realize(); } @@ -801,8 +792,6 @@ bool wxRibbonToolBar::Realize() for(nrows = m_nrows_min; nrows <= m_nrows_max; ++nrows) { - for(r = 0; r < nrows; ++r) - row_sizes[r] = wxSize(0, 0); for(g = 0; g < group_count; ++g) { wxRibbonToolBarToolGroup* group = m_groups.Item(g); @@ -902,8 +891,6 @@ void wxRibbonToolBar::OnSize(wxSizeEvent& evt) int sep = m_art->GetMetric(wxRIBBON_ART_TOOL_GROUP_SEPARATION_SIZE); int r; - for(r = 0; r < row_count; ++r) - row_sizes[r] = wxSize(0, 0); size_t g; size_t group_count = m_groups.GetCount(); for(g = 0; g < group_count; ++g)