X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f618020a15f1647a83aaeab1fe315f90497a9876..991d57f8443fc8a31c2ad3e3a8180af08a6394d6:/include/wx/iconbndl.h diff --git a/include/wx/iconbndl.h b/include/wx/iconbndl.h index 4022624360..3749467240 100644 --- a/include/wx/iconbndl.h +++ b/include/wx/iconbndl.h @@ -12,16 +12,12 @@ #ifndef _WX_ICONBNDL_H_ #define _WX_ICONBNDL_H_ -#ifdef __GNUG__ -#pragma interface "iconbndl.h" -#endif - -#include "dynarray.h" +#include "wx/dynarray.h" // for wxSize #include "wx/gdicmn.h" -class WXDLLEXPORT wxIcon; -class WXDLLEXPORT wxString; +class WXDLLIMPEXP_CORE wxIcon; +class WXDLLIMPEXP_BASE wxString; WX_DECLARE_EXPORTED_OBJARRAY( wxIcon, wxIconArray ); @@ -32,16 +28,16 @@ class WXDLLEXPORT wxIconBundle { public: // default constructor - wxIconBundle() {} + wxIconBundle() : m_icons() {} // initializes the bundle with the icon(s) found in the file - wxIconBundle( const wxString& file, long type ) + wxIconBundle( const wxString& file, long type ) : m_icons() { AddIcon( file, type ); } // initializes the bundle with a single icon - wxIconBundle( const wxIcon& icon ) + wxIconBundle( const wxIcon& icon ) : m_icons() { AddIcon( icon ); } const wxIconBundle& operator =( const wxIconBundle& ic ); - wxIconBundle( const wxIconBundle& ic ) + wxIconBundle( const wxIconBundle& ic ) : m_icons() { *this = ic; } ~wxIconBundle() { DeleteIcons(); } @@ -60,7 +56,7 @@ public: // returns the first icon in the bundle const wxIcon& GetIcon( const wxSize& size ) const; // equivalent to GetIcon( wxSize( size, size ) ) - const wxIcon& GetIcon( wxCoord size = -1 ) const + const wxIcon& GetIcon( wxCoord size = wxDefaultCoord ) const { return GetIcon( wxSize( size, size ) ); } private: // delete all icons