Fix wxQt compilation in STL build

Use compatibility_iterator instead of Node* for iterating over wxList,
the latter doesn't compile when wxUSE_STD_CONTAINERS==1.
This commit is contained in:
Scott Furry 2017-07-14 16:54:17 +02:00 committed by Vadim Zeitlin
parent f8c14d1176
commit 0d63351eef

View file

@ -86,7 +86,7 @@ QList< QShortcut* > *wxAcceleratorTable::ConvertShortcutTable( QWidget *parent )
{
QList< QShortcut* > *qtList = new QList< QShortcut* >;
for ( wxAccelList::Node *node = M_ACCELDATA->m_accels.GetFirst(); node; node = node->GetNext() )
for ( wxAccelList::compatibility_iterator node = M_ACCELDATA->m_accels.GetFirst(); node; node = node->GetNext() )
{
qtList->push_back(ConvertAccelerator( node->GetData(), parent ));
}