X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfa4a244f0dabd5319231b281c7b7f11fafc065d..0425151023593cb31da0ee0a652da173ca9abfde:/src/common/cmdproc.cpp diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 6d4ea44642..09603432bd 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -69,6 +69,9 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #endif // wxUSE_MENUS m_undoAccelerator = wxT("\tCtrl+Z"); m_redoAccelerator = wxT("\tCtrl+Y"); +#if !wxUSE_STL + m_currentCommand = NULL; +#endif } wxCommandProcessor::~wxCommandProcessor() @@ -159,7 +162,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 ) {