Addresses:
printf-format warinigs
indentation/style
unused variable warnings
used wxID_ABOUT for about menu entry
removed references to "minimal sample" in other samples
some other misc warinigs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16345
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if !defined(__WXMOTIF__) && !defined(__WIN16__) // wxStaticBitmap not working under Motif yet; and icons not allowed under WIN16.
wxIcon icon = wxArtProvider::GetIcon(wxART_INFORMATION);
#if !defined(__WXMOTIF__) && !defined(__WIN16__) // wxStaticBitmap not working under Motif yet; and icons not allowed under WIN16.
wxIcon icon = wxArtProvider::GetIcon(wxART_INFORMATION);
- wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon,
- wxPoint(10, 10));
+ (void) new wxStaticBitmap( panel, -1, icon, wxPoint(10, 10) );
// VZ: don't leak memory
// bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10));
// VZ: don't leak memory
// bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10));
if ( m_spinctrl )
{
wxString s;
if ( m_spinctrl )
{
wxString s;
- s.Printf(_T("Spin ctrl text changed: now %d (from event: %s)\n"),
- m_spinctrl->GetValue(), event.GetString());
+ s.Printf( _T("Spin ctrl text changed: now %d (from event: %s)\n"),
+ m_spinctrl->GetValue(), event.GetString().c_str() );
m_text->AppendText(s);
}
}
m_text->AppendText(s);
}
}
if ( m_spinctrl )
{
wxString s;
if ( m_spinctrl )
{
wxString s;
- s.Printf(_T("Spin ctrl changed: now %d (from event: %d)\n"),
- m_spinctrl->GetValue(), event.GetInt());
+ s.Printf( _T("Spin ctrl changed: now %d (from event: %ld)\n"),
+ m_spinctrl->GetValue(), event.GetInt() );
m_text->AppendText(s);
}
}
m_text->AppendText(s);
}
}
- m_text->AppendText(wxString::Format(_T("Spin up: %d (from event: %d)\n"),
- m_spinctrl->GetValue(), event.GetInt()));
+ m_text->AppendText( wxString::Format(
+ _T("Spin up: %d (from event: %ld)\n"),
+ m_spinctrl->GetValue(), event.GetInt() ) );
- m_text->AppendText(wxString::Format(_T("Spin down: %d (from event: %d)\n"),
- m_spinctrl->GetValue(), event.GetInt()));
+ m_text->AppendText( wxString::Format(
+ _T("Spin down: %d (from event: %ld)\n"),
+ m_spinctrl->GetValue(), event.GetInt() ) );
wxPoint pt(x, y);
wxString s;
wxPoint pt(x, y);
wxString s;
- s.Printf(wxT("Shape dropped at (%ld, %ld)"), pt.x, pt.y);
+ s.Printf(wxT("Shape dropped at (%d, %d)"), pt.x, pt.y);
SetStatusText(s);
shape->Move(pt);
SetStatusText(s);
shape->Move(pt);