X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dfa4a244f0dabd5319231b281c7b7f11fafc065d..0fa8508d0c6343d11178758f00fa68ae00721809:/src/common/cmdproc.cpp diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 6d4ea44642..20c5176ae2 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 05.11.00 // RCS-ID: $Id$ -// Copyright: (c) wxWindows team +// Copyright: (c) wxWidgets team // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "cmdproc.h" #endif @@ -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 ) {