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:
parent
f978831f37
commit
fde87a8276
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user