From: Stefan Neis Date: Fri, 6 Jan 2006 16:04:00 +0000 (+0000) Subject: Removed creation&deletion of an unused font object. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/74fd4fd42a1b530b346ff3b9518e1bdba7e813f4?ds=inline Removed creation&deletion of an unused font object. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/choice.cpp b/src/os2/choice.cpp index 8235ed3532..cea4402332 100644 --- a/src/os2/choice.cpp +++ b/src/os2/choice.cpp @@ -94,18 +94,11 @@ bool wxChoice::Create( { Append(asChoices[i]); } - wxFont* pTextFont = new wxFont( 10 - ,wxMODERN - ,wxNORMAL - ,wxNORMAL - ); - SetFont(*pTextFont); SetSize( rPos.x ,rPos.y ,rSize.x ,rSize.y ); - delete pTextFont; return true; } // end of wxChoice::Create