Remove an unnecessary test for wxUSE_STD_CONTAINERS

Remove the extra initialization which was supposed to avoid a compiler
warning that doesn't seem to happen any more.
This commit is contained in:
Vadim Zeitlin 2023-04-10 15:44:52 +01:00
parent 3a96c34e12
commit de1dca5ff1

View file

@ -163,11 +163,7 @@ bool wxCommandProcessor::Undo()
bool wxCommandProcessor::Redo()
{
wxCommand *redoCommand = nullptr;
wxList::compatibility_iterator redoNode
#if !wxUSE_STD_CONTAINERS
= nullptr // just to avoid warnings
#endif // !wxUSE_STD_CONTAINERS
;
wxList::compatibility_iterator redoNode;
if ( m_currentCommand )
{