Fix MSVC14 warnings about a shadowed variable in the propgrid sample.
Just to suppress some harmless warnings.
This commit is contained in:
@@ -3050,10 +3050,10 @@ void FormMain::OnMisc ( wxCommandEvent& event )
|
|||||||
else if ( id == ID_COLLAPSE )
|
else if ( id == ID_COLLAPSE )
|
||||||
{
|
{
|
||||||
// Collapses selected.
|
// Collapses selected.
|
||||||
wxPGProperty* id = m_pPropGridManager->GetSelection();
|
wxPGProperty* selProp = m_pPropGridManager->GetSelection();
|
||||||
if ( id )
|
if ( selProp )
|
||||||
{
|
{
|
||||||
m_pPropGridManager->Collapse(id);
|
m_pPropGridManager->Collapse(selProp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( id == ID_RUNTESTFULL )
|
else if ( id == ID_RUNTESTFULL )
|
||||||
|
@@ -575,12 +575,11 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
|
|
||||||
wxVariant values = page->GetPropertyValues();
|
wxVariant values = page->GetPropertyValues();
|
||||||
|
|
||||||
unsigned int i;
|
for (unsigned int j = 0; j < (unsigned int)values.GetCount(); j++ )
|
||||||
for ( i = 0; i < (unsigned int)values.GetCount(); i++ )
|
|
||||||
{
|
{
|
||||||
wxVariant& v = values[i];
|
wxVariant& v = values[j];
|
||||||
|
|
||||||
t.Printf(wxT("%i: name=\"%s\" type=\"%s\"\n"),(int)i,
|
t.Printf(wxT("%i: name=\"%s\" type=\"%s\"\n"),(int)j,
|
||||||
v.GetName().c_str(),v.GetType().c_str());
|
v.GetName().c_str(),v.GetType().c_str());
|
||||||
|
|
||||||
text += t;
|
text += t;
|
||||||
@@ -821,7 +820,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
CreateGrid( -1, wxPG_EX_MULTIPLE_SELECTION);
|
CreateGrid( -1, wxPG_EX_MULTIPLE_SELECTION);
|
||||||
pgman = m_pPropGridManager;
|
pgman = m_pPropGridManager;
|
||||||
|
|
||||||
wxPropertyGrid* pg = pgman->GetGrid();
|
pg = pgman->GetGrid();
|
||||||
|
|
||||||
wxPGProperty* prop1 = pg->GetProperty(wxT("Label"));
|
wxPGProperty* prop1 = pg->GetProperty(wxT("Label"));
|
||||||
wxPGProperty* prop2 = pg->GetProperty(wxT("Cell Text Colour"));
|
wxPGProperty* prop2 = pg->GetProperty(wxT("Cell Text Colour"));
|
||||||
@@ -875,7 +874,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
// Test label editing
|
// Test label editing
|
||||||
RT_START_TEST(LABEL_EDITING)
|
RT_START_TEST(LABEL_EDITING)
|
||||||
|
|
||||||
wxPropertyGrid* pg = pgman->GetGrid();
|
pg = pgman->GetGrid();
|
||||||
|
|
||||||
// Just mostly test that these won't crash
|
// Just mostly test that these won't crash
|
||||||
pg->MakeColumnEditable(0, true);
|
pg->MakeColumnEditable(0, true);
|
||||||
|
Reference in New Issue
Block a user