From: Vadim Zeitlin Date: Sat, 12 Jul 2003 11:28:39 +0000 (+0000) Subject: fix for a warning when wxUSE_STL == 1 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4ed40684b46c71bcff8d11242c84043e2602ce58 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 --- 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 ) {