]> git.saurik.com Git - wxWidgets.git/commitdiff
change wxCmdLineEntryDesc::short/longName type to wxString for better compatibility...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Sep 2007 23:41:56 +0000 (23:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Sep 2007 23:41:56 +0000 (23:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/cmdlpars.tex
include/wx/cmdline.h

index 46119ef6d129523baf414c8485e24a285bf6e9a1..f5b21d36a89bacf4a995641f7bbf45052cb09db2 100644 (file)
@@ -69,8 +69,8 @@ this structure:
 struct wxCmdLineEntryDesc
 {
     wxCmdLineEntryType kind;
-    const char *shortName;
-    const char *longName;
+    wxString shortName;
+    wxString longName;
     wxString description;
     wxCmdLineParamType type;
     int flags;
@@ -93,7 +93,7 @@ enum wxCmdLineEntryType
 }
 
 The field {\tt shortName} is the usual, short, name of the switch or the option.
-{\tt longName} is the corresponding long name or NULL if the option has no long
+{\tt longName} is the corresponding long name or empty if the option has no long
 name. Both of these fields are unused for the parameters. Both the short and
 long option names can contain only letters, digits and the underscores.
 
index c9dd72b9d2d214460fc3e85268aff514a43fac5a..fc5726d1da960f1eca937aa537b03f85fc3f2187 100644 (file)
@@ -64,8 +64,8 @@ enum wxCmdLineEntryType
 struct wxCmdLineEntryDesc
 {
     wxCmdLineEntryType kind;
-    const char *shortName;
-    const char *longName;
+    wxString shortName;
+    wxString longName;
     wxString description;
     wxCmdLineParamType type;
     int flags;