don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// global data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static GtkTooltips *ss_tooltips = (GtkTooltips*) NULL;
|
||||
static GtkTooltips *ss_tooltips = NULL;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxToolTip
|
||||
@@ -35,7 +35,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
|
||||
wxToolTip::wxToolTip( const wxString &tip )
|
||||
{
|
||||
m_text = tip;
|
||||
m_window = (wxWindow*) NULL;
|
||||
m_window = NULL;
|
||||
}
|
||||
|
||||
void wxToolTip::SetTip( const wxString &tip )
|
||||
@@ -56,7 +56,7 @@ void wxToolTip::Apply( wxWindow *win )
|
||||
m_window = win;
|
||||
|
||||
if (m_text.empty())
|
||||
m_window->ApplyToolTip( ss_tooltips, (wxChar*) NULL );
|
||||
m_window->ApplyToolTip( ss_tooltips, NULL );
|
||||
else
|
||||
m_window->ApplyToolTip( ss_tooltips, m_text );
|
||||
}
|
||||
|
Reference in New Issue
Block a user