From: Vadim Zeitlin Date: Sun, 22 Jun 2003 00:19:38 +0000 (+0000) Subject: added default ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e3362daa88b836ea1e6092c6b44123061b9f0e9 added default ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/iconloc.h b/include/wx/iconloc.h index 2ace40208b..a1a5371a0d 100644 --- a/include/wx/iconloc.h +++ b/include/wx/iconloc.h @@ -22,7 +22,8 @@ class WXDLLEXPORT wxIconLocationBase { public: // ctor takes the name of the file where the icon is - wxEXPLICIT wxIconLocationBase(const wxString& file) : m_filename(file) { } + wxEXPLICIT wxIconLocationBase(const wxString& filename = wxEmptyString) + : m_filename(filename) { } // default copy ctor, assignment operator and dtor are ok @@ -31,7 +32,7 @@ public: bool IsOk() const { return !m_filename.empty(); } // set/get the icon file name - void SetFileName(const wxString& file) { m_filename = file; } + void SetFileName(const wxString& filename) { m_filename = filename; } const wxString& GetFileName() const { return m_filename; } private: @@ -47,7 +48,7 @@ class WXDLLEXPORT wxIconLocation : public wxIconLocationBase public: // ctor takes the name of the file where the icon is and the icons index in // the file - wxEXPLICIT wxIconLocation(const wxString& file, int num = 0); + wxEXPLICIT wxIconLocation(const wxString& file = wxEmptyString, int num = 0); // set/get the icon index void SetIndex(int num) { m_index = num; }