From 4ed40684b46c71bcff8d11242c84043e2602ce58 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jul 2003 11:28:39 +0000 Subject: [PATCH] fix for a warning when wxUSE_STL == 1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdproc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 6d4ea44642..f85b076762 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -159,7 +159,11 @@ bool wxCommandProcessor::Undo() bool wxCommandProcessor::Redo() { wxCommand *redoCommand = (wxCommand *) NULL; - wxList::compatibility_iterator redoNode = 0; + wxList::compatibility_iterator redoNode +#if !wxUSE_STL + = NULL // just to avoid warnings +#endif // !wxUSE_STL + ; if ( m_currentCommand ) { -- 2.45.2