Simplify getting current wxPG editor control

We can just return the pointer, whether it is NULL or not.
This commit is contained in:
Artur Wieczorek
2018-07-06 22:57:53 +02:00
parent 858b5e7222
commit 81cac4e46b

View File

@@ -1776,12 +1776,7 @@ wxPGCheckBoxEditor::~wxPGCheckBoxEditor()
wxWindow* wxPropertyGrid::GetEditorControl() const wxWindow* wxPropertyGrid::GetEditorControl() const
{ {
wxWindow* ctrl = m_wndEditor; return m_wndEditor;
if ( !ctrl )
return ctrl;
return ctrl;
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------