X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e3362daa88b836ea1e6092c6b44123061b9f0e9..3786c8b587f82e406ba9656847b5bff4ed9209c2:/include/wx/iconloc.h diff --git a/include/wx/iconloc.h b/include/wx/iconloc.h index a1a5371a0d..dcccca3274 100644 --- a/include/wx/iconloc.h +++ b/include/wx/iconloc.h @@ -5,7 +5,7 @@ // Modified by: // Created: 21.06.2003 // RCS-ID: $Id$ -// Copyright: (c) 2003 Vadim Zeitlin +// Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ // wxIconLocation: describes the location of an icon // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxIconLocationBase +class WXDLLIMPEXP_BASE wxIconLocationBase { public: // ctor takes the name of the file where the icon is @@ -43,7 +43,7 @@ private: // index of the icon #if defined(__WXMSW__) -class WXDLLEXPORT wxIconLocation : public wxIconLocationBase +class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase { public: // ctor takes the name of the file where the icon is and the icons index in @@ -67,7 +67,13 @@ wxIconLocation::wxIconLocation(const wxString& file, int num) #else // !MSW -typedef wxIconLocationBase wxIconLocation; +// must be a class because we forward declare it as class +class WXDLLIMPEXP_BASE wxIconLocation : public wxIconLocationBase +{ +public: + wxEXPLICIT wxIconLocation(const wxString& filename = wxEmptyString) + : wxIconLocationBase(filename) { } +}; #endif // platform