X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4294b7832a5aed3c1cccc06aecd227d43da8830..d54598dd855e64cf2086b73cb3b8e3b99c513bbc:/src/motif/icon.cpp diff --git a/src/motif/icon.cpp b/src/motif/icon.cpp index 8a46da1412..55d70fdd9a 100644 --- a/src/motif/icon.cpp +++ b/src/motif/icon.cpp @@ -26,8 +26,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) #endif /* - * Icons - */ +* Icons +*/ wxIcon::wxIcon() { @@ -46,8 +46,8 @@ wxIcon::wxIcon(char **data) } wxIcon::wxIcon(const wxString& icon_file, long flags, - int desiredWidth, int desiredHeight) - + int desiredWidth, int desiredHeight) + { LoadFile(icon_file, flags, desiredWidth, desiredHeight); } @@ -57,17 +57,17 @@ wxIcon::~wxIcon() } bool wxIcon::LoadFile(const wxString& filename, long type, - int desiredWidth, int desiredHeight) + int desiredWidth, int desiredHeight) { - UnRef(); - - m_refData = new wxBitmapRefData; - - wxBitmapHandler *handler = FindHandler(type); - - if ( handler ) - return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight); - else - return FALSE; + UnRef(); + + m_refData = new wxBitmapRefData; + + wxBitmapHandler *handler = FindHandler(type); + + if ( handler ) + return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight); + else + return FALSE; }