Limit the scope of a temporary variable
This commit is contained in:
parent
54c5584c65
commit
42932d4670
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user