]> git.saurik.com Git - wxWidgets.git/commitdiff
better document some of the incompatibilities introduced by the Unicode changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Sep 2007 23:47:52 +0000 (23:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Sep 2007 23:47:52 +0000 (23:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt

index 4af8e40d944608ce9fddc62305044ea97a9ab95f..6cb0b685f8ce09339f1a7793c08ca99855f25fcb 100644 (file)
@@ -14,12 +14,18 @@ in the manual for more details but here are the most important incompatible
 changes:
 
 - Many wxWidgets functions taking "const wxChar *" have been changed to take
-  either "const wxString&" if they should accept both Unicode or ANSI strings
+  either "const wxString&" so that they accept both Unicode and ANSI strings.
   and the argument can't be NULL or "const char *" if the strings are always
-  ANSI but may be NULL.
+  ANSI but may be NULL. This change is normally backwards compatible except:
+
+  a) Virtual functions: derived classes versions must be modified to take
+     "const wxString&" as well to make sure that they continue to override the
+     base class version.
+
+  b) Passing NULL as argument: as NULL can't be unambiguously converted to
+     wxString, in many cases code using it won't compile any more and NULL
+     should be replaced with an empty string.
 
-- Some structure fields have been changed from "wxChar *" to "char *" too:
-  e.g. wxCmdLineEntryDesc fields.
 
 
 Changes in behaviour not resulting in compilation errors, please read this!