Eliminated bizarre VC++ internal compiler errors, perhaps related to
enabling C++ RTTI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -250,7 +250,11 @@ void wxStatusBarBase::FreeStacks()
|
||||
void wxStatusBarBase::PushStatusText(const wxString& text, int number)
|
||||
{
|
||||
wxListString* st = GetOrCreateStatusStack(number);
|
||||
st->Insert(new wxString(GetStatusText(number)));
|
||||
// This long-winded way around avoids an internal compiler error
|
||||
// in VC++ 6 with RTTI enabled
|
||||
wxString tmp1(GetStatusText(number));
|
||||
wxString* tmp = new wxString(tmp1);
|
||||
st->Insert(tmp);
|
||||
SetStatusText(text, number);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user