From de1dca5ff1c230f1c6d2db9c35e09b67d13cd3fe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Apr 2023 15:44:52 +0100 Subject: [PATCH] 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. --- src/common/cmdproc.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index f92cd14f7d..42faef0f05 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -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 ) {