cvs wxString changes.
Gunnar Roth
gunnar.roth at gmx.de
Mon Apr 2 09:15:23 PDT 2007
hello,
the wxstring changes in cvs again break my app.
the line:
return wxGetApp().Prefs.bDisplayEmptyPlaylistColumnAsUnkown ==
true ? _( "<unknown>" ):wxEmptyString;
yields the error: error: operands to ?: have different types
i build mac,unicode
replacing wxEmptyString by wxT("") fixes the error of course. but i
regarded usage of wxEmptyString to be more memory efficient.
but when i recommended to change wxListCtrl 's signature (some years ago)
virtual wxListItemAttr *OnGetItemAttr(long item) const;
to
virtual const wxListItemAttr *OnGetItemAttr(long item) const; ( to not
be forced to const cast internal member access)
it was said that would break to compile for too many users.
regards,
gunnar
More information about the wx-dev
mailing list