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:
Vadim Zeitlin
2008-11-02 02:39:52 +00:00
parent 6fc905e0e1
commit 5c33522fca
174 changed files with 347 additions and 348 deletions

View File

@@ -86,7 +86,7 @@ wxFileOffset wxStringInputStream::OnSysSeek(wxFileOffset ofs, wxSeekMode mode)
return wxInvalidOffset;
}
if ( ofs < 0 || ofs > wx_static_cast(wxFileOffset, m_len) )
if ( ofs < 0 || ofs > static_cast<wxFileOffset>(m_len) )
return wxInvalidOffset;
// FIXME: this can't be right
@@ -97,7 +97,7 @@ wxFileOffset wxStringInputStream::OnSysSeek(wxFileOffset ofs, wxSeekMode mode)
wxFileOffset wxStringInputStream::OnSysTell() const
{
return wx_static_cast(wxFileOffset, m_pos);
return static_cast<wxFileOffset>(m_pos);
}
// ----------------------------------------------------------------------------
@@ -135,7 +135,7 @@ size_t wxStringInputStream::OnSysRead(void *buffer, size_t size)
wxFileOffset wxStringOutputStream::OnSysTell() const
{
return wx_static_cast(wxFileOffset, m_pos);
return static_cast<wxFileOffset>(m_pos);
}
// ----------------------------------------------------------------------------
@@ -144,7 +144,7 @@ wxFileOffset wxStringOutputStream::OnSysTell() const
size_t wxStringOutputStream::OnSysWrite(const void *buffer, size_t size)
{
const char *p = wx_static_cast(const char *, buffer);
const char *p = static_cast<const char *>(buffer);
#if wxUSE_UNICODE_WCHAR
// the part of the string we have here may be incomplete, i.e. it can stop