X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eb65cb341bb04925a8698497e0d2d4a35986f6d4..69c695466d495aca6ab44e3d8e4219fc00ff2146:/src/os2/gdiimage.cpp diff --git a/src/os2/gdiimage.cpp b/src/os2/gdiimage.cpp index 0b356d003a..1c13465880 100644 --- a/src/os2/gdiimage.cpp +++ b/src/os2/gdiimage.cpp @@ -227,12 +227,6 @@ private: IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject) #endif -// ---------------------------------------------------------------------------- -// private functions -// ---------------------------------------------------------------------------- - -static wxSize GetHiconSize(WXHICON hicon); - // ============================================================================ // implementation // ============================================================================ @@ -298,13 +292,15 @@ wxGDIImageHandler* wxGDIImage::FindHandler( const wxString& rName ) { - wxGDIImageHandlerList::compatibility_iterator node = ms_handlers.GetFirst(); - while ( node ) + wxGDIImageHandlerList::compatibility_iterator pNode = ms_handlers.GetFirst(); + + while ( pNode ) { - wxGDIImageHandler *handler = node->GetData(); - if ( handler->GetName() == name ) - return handler; - node = node->GetNext(); + wxGDIImageHandler* pHandler = pNode->GetData(); + + if ( pHandler->GetName() == rName ) + return pHandler; + pNode = pNode->GetNext(); } return((wxGDIImageHandler*)NULL); } @@ -314,17 +310,17 @@ wxGDIImageHandler* wxGDIImage::FindHandler( , long lType ) { - wxGDIImageHandlerList::compatibility_iterator node = ms_handlers.GetFirst(); - while ( node ) + wxGDIImageHandlerList::compatibility_iterator pNode = ms_handlers.GetFirst(); + while ( pNode ) { - wxGDIImageHandler *handler = node->GetData(); - if ( (handler->GetExtension() = extension) && - (type == -1 || handler->GetType() == type) ) + wxGDIImageHandler* pHandler = pNode->GetData(); + + if ( (pHandler->GetExtension() = rExtension) && + (lType == -1 || pHandler->GetType() == lType) ) { - return handler; + return pHandler; } - - node = node->GetNext(); + pNode = pNode->GetNext(); } return((wxGDIImageHandler*)NULL); } @@ -333,29 +329,31 @@ wxGDIImageHandler* wxGDIImage::FindHandler( long lType ) { - wxGDIImageHandlerList::compatibility_iterator node = ms_handlers.GetFirst(); - while ( node ) + wxGDIImageHandlerList::compatibility_iterator pNode = ms_handlers.GetFirst(); + + while ( pNode ) { - wxGDIImageHandler *handler = node->GetData(); - if ( handler->GetType() == type ) - return handler; + wxGDIImageHandler* pHandler = pNode->GetData(); - node = node->GetNext(); + if ( pHandler->GetType() == lType ) + return pHandler; + pNode = pNode->GetNext(); } - return((wxGDIImageHandler*)NULL); } void wxGDIImage::CleanUpHandlers() { - wxGDIImageHandlerList::compatibility_iterator node = ms_handlers.GetFirst(); - while ( node ) + wxGDIImageHandlerList::compatibility_iterator pNode = ms_handlers.GetFirst(); + + while ( pNode ) { - wxGDIImageHandler *handler = node->GetData(); - wxGDIImageHandlerList::compatibility_iterator next = node->GetNext(); - delete handler; - ms_handlers.Erase( node ); - node = next; + wxGDIImageHandler* pHandler = pNode->GetData(); + wxGDIImageHandlerList::compatibility_iterator pNext = pNode->GetNext(); + + delete pHandler; + ms_handlers.Erase( pNode ); + pNode = pNext; } } @@ -507,17 +505,3 @@ bool wxICOResourceHandler::LoadIcon( return pIcon->Ok(); } // end of wxICOResourceHandler::LoadIcon -// ---------------------------------------------------------------------------- -// private functions -// ---------------------------------------------------------------------------- - -static wxSize GetHiconSize( - WXHICON hicon -) -{ - wxSize vSize(32, 32); // default - - // all OS/2 icons are 32x32 - return(vSize); -} -