From: Václav Slavík Date: Wed, 15 Oct 2008 18:49:47 +0000 (+0000) Subject: no need to iterate over all special icon names after a match was found, there won... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fde87a82768ea971a9832e39d87137100e382422 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 --- diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 910d6c90b5..e7aaa0c36f 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -548,6 +548,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon, if ( name == stdIcons[nIcon].name ) { hicon = ::LoadIcon((HINSTANCE)NULL, stdIcons[nIcon].id); + break; } } }