Fix MSVC14 warnings about a shadowed variable in the propgrid sample.

Just to suppress some harmless warnings.
This commit is contained in:
Artur Wieczorek
2016-02-18 18:42:06 +01:00
parent a8b1894628
commit 51f7074caf
2 changed files with 8 additions and 9 deletions

View File

@@ -3050,10 +3050,10 @@ void FormMain::OnMisc ( wxCommandEvent& event )
else if ( id == ID_COLLAPSE )
{
// Collapses selected.
wxPGProperty* id = m_pPropGridManager->GetSelection();
if ( id )
wxPGProperty* selProp = m_pPropGridManager->GetSelection();
if ( selProp )
{
m_pPropGridManager->Collapse(id);
m_pPropGridManager->Collapse(selProp);
}
}
else if ( id == ID_RUNTESTFULL )