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
This commit is contained in:
@@ -94,18 +94,11 @@ bool wxChoice::Create(
|
|||||||
{
|
{
|
||||||
Append(asChoices[i]);
|
Append(asChoices[i]);
|
||||||
}
|
}
|
||||||
wxFont* pTextFont = new wxFont( 10
|
|
||||||
,wxMODERN
|
|
||||||
,wxNORMAL
|
|
||||||
,wxNORMAL
|
|
||||||
);
|
|
||||||
SetFont(*pTextFont);
|
|
||||||
SetSize( rPos.x
|
SetSize( rPos.x
|
||||||
,rPos.y
|
,rPos.y
|
||||||
,rSize.x
|
,rSize.x
|
||||||
,rSize.y
|
,rSize.y
|
||||||
);
|
);
|
||||||
delete pTextFont;
|
|
||||||
return true;
|
return true;
|
||||||
} // end of wxChoice::Create
|
} // end of wxChoice::Create
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user