Use wxVector<wxPropertyGridPageState*> instead of wxArrayPtrVoid
This commit is contained in:
@@ -915,22 +915,19 @@ wxString wxPropertyGridInterface::SaveEditableState( int includedStates ) const
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Save state on page basis
|
// Save state on page basis
|
||||||
unsigned int pageIndex = 0;
|
wxVector<wxPropertyGridPageState*> pageStates;
|
||||||
wxArrayPtrVoid pageStates;
|
for (int pageIndex = 0; ; pageIndex++)
|
||||||
|
|
||||||
for (;;)
|
|
||||||
{
|
{
|
||||||
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
||||||
if ( !page ) break;
|
if ( !page ) break;
|
||||||
|
|
||||||
pageStates.Add(page);
|
pageStates.push_back(page);
|
||||||
|
|
||||||
pageIndex++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( pageIndex=0; pageIndex < pageStates.size(); pageIndex++ )
|
for (wxVector<wxPropertyGridPageState*>::const_iterator it_ps = pageStates.begin();
|
||||||
|
it_ps != pageStates.end(); ++it_ps)
|
||||||
{
|
{
|
||||||
wxPropertyGridPageState* pageState = (wxPropertyGridPageState*) pageStates[pageIndex];
|
wxPropertyGridPageState* pageState = *it_ps;
|
||||||
|
|
||||||
if ( includedStates & SelectionState )
|
if ( includedStates & SelectionState )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user