]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/statbar.cpp
oops, more fixes needed
[wxWidgets.git] / src / common / statbar.cpp
index 238802c0c2ecf0138780a448bb1966087cc869d7..984a9e127828edad75530babd3fb9060908c7c2c 100644 (file)
@@ -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);
 }