no need to iterate over all special icon names after a match was found, there won't be another one

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2008-10-15 18:49:47 +00:00
parent f978831f37
commit fde87a8276

View File

@ -548,6 +548,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
if ( name == stdIcons[nIcon].name ) if ( name == stdIcons[nIcon].name )
{ {
hicon = ::LoadIcon((HINSTANCE)NULL, stdIcons[nIcon].id); hicon = ::LoadIcon((HINSTANCE)NULL, stdIcons[nIcon].id);
break;
} }
} }
} }