replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -369,7 +369,7 @@ wxGDIRefData *wxBitmap::CreateGDIRefData() const
|
||||
|
||||
wxGDIRefData *wxBitmap::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
{
|
||||
return new wxBitmapRefData(*wx_static_cast(const wxBitmapRefData *, data));
|
||||
return new wxBitmapRefData(*static_cast<const wxBitmapRefData *>(data));
|
||||
}
|
||||
|
||||
bool wxBitmap::Create( int width, int height, int depth )
|
||||
|
@@ -264,7 +264,7 @@ void wxChoice::DoDeleteOneItem(unsigned int n)
|
||||
|
||||
void ** const data = &itemsData[0];
|
||||
if ( HasClientObjectData() )
|
||||
Append(items, wx_reinterpret_cast(wxClientData **, data));
|
||||
Append(items, reinterpret_cast<wxClientData **>(data));
|
||||
else
|
||||
Append(items, data);
|
||||
}
|
||||
|
@@ -327,7 +327,7 @@ wxGDIRefData *wxCursor::CreateGDIRefData() const
|
||||
|
||||
wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
{
|
||||
return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data));
|
||||
return new wxCursorRefData(*static_cast<const wxCursorRefData *>(data));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -1147,7 +1147,7 @@ bool wxWindowDCImpl::DoBlit( wxCoord xdest, wxCoord ydest,
|
||||
wxCHECK_MSG( srcDC, false, "source must be a window DC" );
|
||||
|
||||
// FIXME: this cast is not always valid, see the code using m_isMemDC
|
||||
wxMemoryDCImpl *memDC = wx_static_cast(wxMemoryDCImpl *, srcDC);
|
||||
wxMemoryDCImpl *memDC = static_cast<wxMemoryDCImpl *>(srcDC);
|
||||
|
||||
bool use_bitmap_method = false;
|
||||
bool is_mono = false;
|
||||
|
@@ -543,7 +543,7 @@ wxGDIRefData *wxFont::CreateGDIRefData() const
|
||||
|
||||
wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
{
|
||||
return new wxFontRefData(*wx_static_cast(const wxFontRefData *, data));
|
||||
return new wxFontRefData(*static_cast<const wxFontRefData *>(data));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -177,7 +177,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent,
|
||||
const wxPalette& palette)
|
||||
: m_createImplicitContext(true)
|
||||
{
|
||||
m_sharedContext = wx_const_cast(wxGLContext *, shared);
|
||||
m_sharedContext = const_cast<wxGLContext *>(shared);
|
||||
|
||||
Create(parent, id, pos, size, style, name, attribList, palette);
|
||||
}
|
||||
@@ -191,7 +191,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent,
|
||||
const wxPalette& palette )
|
||||
: m_createImplicitContext(true)
|
||||
{
|
||||
m_sharedContextOf = wx_const_cast(wxGLCanvas *, shared);
|
||||
m_sharedContextOf = const_cast<wxGLCanvas *>(shared);
|
||||
|
||||
Create(parent, id, pos, size, style, name, attribList, palette);
|
||||
}
|
||||
|
@@ -105,7 +105,7 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
|
||||
gdk_gc_unref( gc );
|
||||
|
||||
// Hack alert
|
||||
wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
|
||||
static_cast<wxClientDCImpl *>(dc.GetImpl())->m_window = pizza->bin_window;
|
||||
dc.SetTextForeground( *wxWHITE );
|
||||
dc.DrawText( win->GetTitle(), 6, 3 );
|
||||
}
|
||||
@@ -151,7 +151,7 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
|
||||
gdk_gc_unref( gc );
|
||||
|
||||
// Hack alert
|
||||
wx_static_cast(wxClientDCImpl *, dc.GetImpl())->m_window = pizza->bin_window;
|
||||
static_cast<wxClientDCImpl *>(dc.GetImpl())->m_window = pizza->bin_window;
|
||||
dc.SetTextForeground( *wxWHITE );
|
||||
dc.DrawText( win->GetTitle(), 6, 3 );
|
||||
}
|
||||
|
@@ -149,7 +149,7 @@ static void GetTooltipColors()
|
||||
gs_objects.m_colTooltip = wxColor(c.red >> SHIFT, c.green >> SHIFT, c.blue >> SHIFT);
|
||||
c = tooltips->tip_window->style->fg[GTK_STATE_NORMAL];
|
||||
gs_objects.m_colTooltipText = wxColor(c.red >> SHIFT, c.green >> SHIFT, c.blue >> SHIFT);
|
||||
gtk_object_sink(wx_reinterpret_cast(GtkObject*, tooltips));
|
||||
gtk_object_sink(reinterpret_cast<GtkObject*>(tooltips));
|
||||
}
|
||||
|
||||
wxColour wxSystemSettingsNative::GetColour( wxSystemColour index )
|
||||
|
@@ -135,7 +135,7 @@ void GTK_EndProcessDetector(gpointer data, gint source,
|
||||
GdkInputCondition WXUNUSED(condition) )
|
||||
{
|
||||
wxEndProcessData * const
|
||||
proc_data = wx_static_cast(wxEndProcessData *, data);
|
||||
proc_data = static_cast<wxEndProcessData *>(data);
|
||||
|
||||
// child exited, end waiting
|
||||
close(source);
|
||||
|
Reference in New Issue
Block a user