Refactor wxPropertyGrid::GenerateEditorTextCtr

Use simplest constructors to initialize local wxPoint, wxSize members.
This commit is contained in:
Artur Wieczorek
2015-08-20 20:49:21 +02:00
parent 3ff8c3c100
commit b43549eb2d

View File

@@ -1906,8 +1906,8 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
if ( prop->HasFlag(wxPG_PROP_READONLY) && forColumn == 1 )
tcFlags |= wxTE_READONLY;
wxPoint p(pos.x,pos.y);
wxSize s(sz.x,sz.y);
wxPoint p(pos);
wxSize s(sz);
// Need to reduce width of text control on Mac
#if defined(__WXMAC__)