Refactor wxPropertyGrid::GenerateEditorTextCtr
Use simplest constructors to initialize local wxPoint, wxSize members.
This commit is contained in:
@@ -1906,8 +1906,8 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
|
|||||||
if ( prop->HasFlag(wxPG_PROP_READONLY) && forColumn == 1 )
|
if ( prop->HasFlag(wxPG_PROP_READONLY) && forColumn == 1 )
|
||||||
tcFlags |= wxTE_READONLY;
|
tcFlags |= wxTE_READONLY;
|
||||||
|
|
||||||
wxPoint p(pos.x,pos.y);
|
wxPoint p(pos);
|
||||||
wxSize s(sz.x,sz.y);
|
wxSize s(sz);
|
||||||
|
|
||||||
// Need to reduce width of text control on Mac
|
// Need to reduce width of text control on Mac
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__)
|
||||||
|
Reference in New Issue
Block a user