s/""/wxEmptyString

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-10 18:31:45 +00:00
parent eb2b6166df
commit e9c3992c39
9 changed files with 23 additions and 22 deletions

View File

@@ -99,7 +99,7 @@ public:
@see Create(), wxValidator @see Create(), wxValidator
*/ */
wxComboBox(wxWindow* parent, wxWindowID id, wxComboBox(wxWindow* parent, wxWindowID id,
const wxString& value = "", const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, int n = 0,

View File

@@ -134,7 +134,7 @@ public:
@header{wx/dirdlg.h} @header{wx/dirdlg.h}
*/ */
wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr, wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
const wxString& default_path = "", const wxString& default_path = wxEmptyString,
long style = 0, long style = 0,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
wxWindow* parent = NULL); wxWindow* parent = NULL);

View File

@@ -14,9 +14,10 @@
It pops up a file selector box (native for Windows and GTK2.4+). It pops up a file selector box (native for Windows and GTK2.4+).
The path and filename are distinct elements of a full file pathname. The path and filename are distinct elements of a full file pathname.
If path is "", the current directory will be used. If filename is "", no default If path is wxEmptyString, the current directory will be used.
filename will be supplied. The wildcard determines what files are displayed in the If filename is wxEmptyString, no default filename will be supplied.
file selector, and file extension supplies a type extension for the required filename. The wildcard determines what files are displayed in the file selector,
and file extension supplies a type extension for the required filename.
@remarks @remarks
All implementations of the wxFileDialog provide a wildcard filter. Typing a filename All implementations of the wxFileDialog provide a wildcard filter. Typing a filename
@@ -272,9 +273,9 @@ public:
@header{wx/filedlg.h} @header{wx/filedlg.h}
*/ */
wxString wxFileSelector(const wxString& message, wxString wxFileSelector(const wxString& message,
const wxString& default_path = "", const wxString& default_path = wxEmptyString,
const wxString& default_filename = "", const wxString& default_filename = wxEmptyString,
const wxString& default_extension = "", const wxString& default_extension = wxEmptyString,
const wxString& wildcard = ".", const wxString& wildcard = ".",
int flags = 0, int flags = 0,
wxWindow* parent = NULL, wxWindow* parent = NULL,

View File

@@ -313,7 +313,7 @@ public:
wxFont(int pointSize, wxFontFamily family, int style, wxFont(int pointSize, wxFontFamily family, int style,
wxFontWeight weight, wxFontWeight weight,
bool underline = false, bool underline = false,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
/** /**
@@ -362,7 +362,7 @@ public:
wxFont(const wxSize& pixelSize, wxFontFamily family, wxFont(const wxSize& pixelSize, wxFontFamily family,
int style, wxFontWeight weight, int style, wxFontWeight weight,
bool underline = false, bool underline = false,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
//@} //@}
@@ -476,23 +476,23 @@ public:
static wxFont* New(int pointSize, wxFontFamily family, int style, static wxFont* New(int pointSize, wxFontFamily family, int style,
wxFontWeight weight, wxFontWeight weight,
bool underline = false, bool underline = false,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(int pointSize, wxFontFamily family, static wxFont* New(int pointSize, wxFontFamily family,
int flags = wxFONTFLAG_DEFAULT, int flags = wxFONTFLAG_DEFAULT,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(const wxSize& pixelSize, static wxFont* New(const wxSize& pixelSize,
wxFontFamily family, wxFontFamily family,
int style, int style,
wxFontWeight weight, wxFontWeight weight,
bool underline = false, bool underline = false,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(const wxSize& pixelSize, static wxFont* New(const wxSize& pixelSize,
wxFontFamily family, wxFontFamily family,
int flags = wxFONTFLAG_DEFAULT, int flags = wxFONTFLAG_DEFAULT,
const wxString& faceName = "", const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
//@} //@}

View File

@@ -56,7 +56,7 @@ public:
Return array of strings containing all encodings found by Return array of strings containing all encodings found by
EnumerateEncodings(). EnumerateEncodings().
*/ */
static wxArrayString GetEncodings(const wxString& facename = ""); static wxArrayString GetEncodings(const wxString& facename = wxEmptyString);
/** /**
Return array of strings containing all facenames found by Return array of strings containing all facenames found by

View File

@@ -39,7 +39,7 @@ public:
Constructor. Constructor.
If no filename is passed, the metafile is created in memory. If no filename is passed, the metafile is created in memory.
*/ */
wxMetafileDC(const wxString& filename = ""); wxMetafileDC(const wxString& filename = wxEmptyString);
/** /**
Destructor. Destructor.
@@ -82,7 +82,7 @@ public:
If a filename is given, the Windows disk metafile is read in. If a filename is given, the Windows disk metafile is read in.
Check whether this was performed successfully by using the IsOk() member. Check whether this was performed successfully by using the IsOk() member.
*/ */
wxMetafile(const wxString& filename = ""); wxMetafile(const wxString& filename = wxEmptyString);
/** /**
Destructor. Destructor.

View File

@@ -97,7 +97,7 @@ public:
@see Create(), wxValidator @see Create(), wxValidator
*/ */
wxOwnerDrawnComboBox(wxWindow* parent, wxWindowID id, wxOwnerDrawnComboBox(wxWindow* parent, wxWindowID id,
const wxString& value = "", const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, int n = 0,
@@ -153,7 +153,7 @@ public:
@remarks Derived classes should call or replace this function. @remarks Derived classes should call or replace this function.
*/ */
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id,
const wxString& value = "", const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n, const wxString choices[], int n, const wxString choices[],

View File

@@ -133,7 +133,7 @@ public:
*/ */
wxString wxGetTextFromUser(const wxString& message, wxString wxGetTextFromUser(const wxString& message,
const wxString& caption = "Input text", const wxString& caption = "Input text",
const wxString& default_value = "", const wxString& default_value = wxEmptyString,
wxWindow* parent = NULL, wxWindow* parent = NULL,
int x = wxDefaultCoord, int x = wxDefaultCoord,
int y = wxDefaultCoord, int y = wxDefaultCoord,
@@ -148,7 +148,7 @@ wxString wxGetTextFromUser(const wxString& message,
*/ */
wxString wxGetPasswordFromUser(const wxString& message, wxString wxGetPasswordFromUser(const wxString& message,
const wxString& caption = "Input text", const wxString& caption = "Input text",
const wxString& default_value = "", const wxString& default_value = wxEmptyString,
wxWindow* parent = NULL, wxWindow* parent = NULL,
int x = wxDefaultCoord, int x = wxDefaultCoord,
int y = wxDefaultCoord, int y = wxDefaultCoord,

View File

@@ -538,7 +538,7 @@ wxString wxGetFullHostName();
@header{wx/utils.h} @header{wx/utils.h}
*/ */
wxString wxGetUserHome(const wxString& user = ""); wxString wxGetUserHome(const wxString& user = wxEmptyString);
/** /**
This function returns the "user id" also known as "login name" under Unix This function returns the "user id" also known as "login name" under Unix