diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index c1266b3c79..f10f465ca2 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -1801,7 +1801,7 @@ void wxDataViewListStore::SetItemData( const wxDataViewItem& item, wxUIntPtr dat wxUIntPtr wxDataViewListStore::GetItemData( const wxDataViewItem& item ) const { wxDataViewListStoreLine* line = m_data[GetRow(item)]; - if (!line) return static_cast(NULL); + if (!line) return 0; return line->GetData(); } diff --git a/src/common/xlocale.cpp b/src/common/xlocale.cpp index 37bc1290b4..dad7778b0a 100644 --- a/src/common/xlocale.cpp +++ b/src/common/xlocale.cpp @@ -76,9 +76,8 @@ wxXLocale& wxXLocale::GetCLocale() { if ( !gs_cLocale ) { - // NOTE: bcc551 has trouble doing static_cast with incomplete - // type definition. reinterpret_cast used as workaround - gs_cLocale = new wxXLocale( reinterpret_cast(NULL) ); + wxXLocaleCTag* tag = NULL; + gs_cLocale = new wxXLocale(tag); } return *gs_cLocale;