X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..86351e4a9d12822b31f2052fe299fc6be6d5f44d:/src/common/statbar.cpp?ds=inline diff --git a/src/common/statbar.cpp b/src/common/statbar.cpp index 238802c0c2..984a9e1278 100644 --- a/src/common/statbar.cpp +++ b/src/common/statbar.cpp @@ -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); }