X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bbe427f8e5a2078b266e282453595b5a634d35c..9419b0d64948485ab83122484ffe4b7dcde25905:/src/gtk1/icon.cpp?ds=sidebyside diff --git a/src/gtk1/icon.cpp b/src/gtk1/icon.cpp index a372cb9869..0d82d6830b 100644 --- a/src/gtk1/icon.cpp +++ b/src/gtk1/icon.cpp @@ -7,9 +7,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "icon.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/icon.h" @@ -33,15 +32,8 @@ wxIcon::wxIcon() : wxBitmap() { } -wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap() +void wxIcon::CopyFromBitmap(const wxBitmap& bmp) { - Ref(icon); + wxIcon *icon = (wxIcon*)(&bmp); + *this = *icon; } - -wxIcon& wxIcon::operator = ( const wxIcon& icon ) -{ - if (*this == icon) return (*this); - Ref(icon); - return *this; -} -