]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for a warning when wxUSE_STL == 1
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 11:28:39 +0000 (11:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 11:28:39 +0000 (11:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdproc.cpp

index 6d4ea446425ac5bb408393fc5c080c4c258c4602..f85b076762cf025f073b940b19b7d022a28e9d0a 100644 (file)
@@ -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 )
     {