static wxString GetDataString(wxClientData *data)
{
- return data ? wx_static_cast(wxStringClientData *, data)->GetData()
+ return data ? static_cast<wxStringClientData *>(data)->GetData()
: wxString("none");
}
return false;
}
- m_lang = wx_static_cast(wxLanguage, lang->Language);
+ m_lang = static_cast<wxLanguage>(lang->Language);
}
return true;
switch (format)
{
case wxIPC_TEXT:
- s += wxString(wx_static_cast(const char *, data), size);
+ s += wxString(static_cast<const char *>(data), size);
break;
#if wxUSE_UNICODE
case wxIPC_UNICODETEXT:
- s += wxString(wx_static_cast(const wchar_t *, data), size);
+ s += wxString(static_cast<const wchar_t *>(data), size);
break;
#endif // wxUSE_UNICODE
case wxIPC_UTF8TEXT:
- s += wxString::FromUTF8(wx_static_cast(const char *, data), size);
+ s += wxString::FromUTF8(static_cast<const char *>(data), size);
break;
case wxIPC_PRIVATE:
if ( size == 3 )
{
- const char *bytes = wx_static_cast(const char *, data);
+ const char *bytes = static_cast<const char *>(data);
s << '"' << bytes[0] << bytes[1] << bytes[2] << '"';
}
else
BOOL CTheApp::PreTranslateMessage(MSG *msg)
{
wxEventLoop * const
- evtLoop = wx_static_cast(wxEventLoop *, wxEventLoop::GetActive());
+ evtLoop = static_cast<wxEventLoop *>(wxEventLoop::GetActive());
if ( evtLoop && evtLoop->PreProcessMessage(msg) )
return TRUE;
void MyFrame::OnType(wxCommandEvent& event)
{
- m_type = wx_static_cast(BookType, event.GetId() - ID_BOOK_NOTEBOOK);
+ m_type = static_cast<BookType>(event.GetId() - ID_BOOK_NOTEBOOK);
if ( m_bookCtrl )
m_sizerFrame->Hide(m_bookCtrl);
// NB: can't use wxStaticCast here as wxBookCtrlBase is not in
// wxRTTI
const wxBookCtrlBase * const
- book = wx_static_cast(wxBookCtrlBase *, event.GetEventObject());
+ book = static_cast<wxBookCtrlBase *>(event.GetEventObject());
if ( idx != wxNOT_FOUND &&
book && book->GetPageText(idx) == VETO_PAGE_NAME )
{
void StaticWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
{
- if (event.GetEventObject() == wx_static_cast(wxObject*, m_chkEllipsize))
+ if (event.GetEventObject() == static_cast<wxObject*>(m_chkEllipsize))
{
m_radioEllipsize->Enable(event.IsChecked());
}
wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") );
const size_t lng = wx_truncate_cast(size_t, offset);
- wxASSERT_MSG( wx_static_cast(wxFileOffset, lng) == offset,
+ wxASSERT_MSG( static_cast<wxFileOffset>(lng) == offset,
wxT("Huge file not supported") );
snum.Printf(_T("%i"), num);
wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") );
const size_t lng = wx_truncate_cast(size_t, offset);
- wxASSERT_MSG( wx_static_cast(wxFileOffset, lng) == offset,
+ wxASSERT_MSG( static_cast<wxFileOffset>(lng) == offset,
wxT("Huge file not supported") );
snum.Printf(_T("%i"), num);