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:
parent
f8c14d1176
commit
0d63351eef
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue