From b43549eb2d7eef4cd9d7bc8753942c31ecce6caa Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 20 Aug 2015 20:49:21 +0200 Subject: [PATCH] Refactor wxPropertyGrid::GenerateEditorTextCtr Use simplest constructors to initialize local wxPoint, wxSize members. --- src/propgrid/editors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 0441b8b35e..bbd509ac2a 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -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__)