X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ed40684b46c71bcff8d11242c84043e2602ce58..1e52188741389278cd99abf79218162c87024ba3:/src/common/cmdproc.cpp?ds=inline diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index f85b076762..08f414c171 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -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()