Limit the scope of a temporary variable

This commit is contained in:
Artur Wieczorek 2018-07-07 20:30:38 +02:00
parent 54c5584c65
commit 42932d4670

View File

@ -1630,11 +1630,10 @@ void wxPropertyGridManager::RecreateControls()
#if wxUSE_HEADERCTRL
if ( m_showHeader )
{
wxPGHeaderCtrl* hc;
if ( !m_pHeaderCtrl )
{
hc = new wxPGHeaderCtrl(this);
wxPGHeaderCtrl* hc = new wxPGHeaderCtrl(this);
hc->Create(this, wxID_ANY);
m_pHeaderCtrl = hc;
}