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:
@@ -167,7 +167,7 @@ wxGDIRefData *wxRegion::CreateGDIRefData() const
|
||||
|
||||
wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
{
|
||||
return new wxRegionRefData(*wx_static_cast(const wxRegionRefData *, data));
|
||||
return new wxRegionRefData(*static_cast<const wxRegionRefData *>(data));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -262,10 +262,10 @@ bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord& w, wxCoord& h) const
|
||||
{
|
||||
CGRect box ;
|
||||
HIShapeGetBounds( M_REGION , &box ) ;
|
||||
x = wx_static_cast(int, box.origin.x);
|
||||
y = wx_static_cast(int, box.origin.y);
|
||||
w = wx_static_cast(int, box.size.width);
|
||||
h = wx_static_cast(int, box.size.height);
|
||||
x = static_cast<int>(box.origin.x);
|
||||
y = static_cast<int>(box.origin.y);
|
||||
w = static_cast<int>(box.size.width);
|
||||
h = static_cast<int>(box.size.height);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user