From fa18eac81eb2479923b268b124c000051750f241 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Mar 2016 15:51:50 +0100 Subject: [PATCH] Don't use wxOVERRIDE for method definitions in gen_iface.py "override" keyword is only valid in declarations. --- src/stc/gen_iface.py | 2 -- src/stc/stc.cpp | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 60522a04c0..79fb4384f5 100755 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -1188,8 +1188,6 @@ def processMethods(methods): theImp = '%s wxStyledTextCtrl::%s(%s)' % (retType, name, params) if is_const: theImp = theImp + ' const' - if is_override: - theImp = theImp + ' wxOVERRIDE' theImp = theImp + '\n{\n ' if retType == 'wxColour': theImp = theImp + 'long c = ' diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 51c99cc2d0..6c6e770e58 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -335,7 +335,7 @@ int wxStyledTextCtrl::GetStyleAt(int pos) const { } // Redoes the next action on the undo history. -void wxStyledTextCtrl::Redo() wxOVERRIDE +void wxStyledTextCtrl::Redo() { SendMsg(SCI_REDO, 0, 0); } @@ -348,7 +348,7 @@ void wxStyledTextCtrl::SetUndoCollection(bool collectUndo) } // Select all the text in the document. -void wxStyledTextCtrl::SelectAll() wxOVERRIDE +void wxStyledTextCtrl::SelectAll() { SendMsg(SCI_SELECTALL, 0, 0); } @@ -380,7 +380,7 @@ wxMemoryBuffer wxStyledTextCtrl::GetStyledText(int startPos, int endPos) { } // Are there any redoable actions in the undo history? -bool wxStyledTextCtrl::CanRedo() const wxOVERRIDE +bool wxStyledTextCtrl::CanRedo() const { return SendMsg(SCI_CANREDO, 0, 0) != 0; } @@ -1751,13 +1751,13 @@ void wxStyledTextCtrl::SetReadOnly(bool readOnly) } // Will a paste succeed? -bool wxStyledTextCtrl::CanPaste() const wxOVERRIDE +bool wxStyledTextCtrl::CanPaste() const { return SendMsg(SCI_CANPASTE, 0, 0) != 0; } // Are there any undoable actions in the undo history? -bool wxStyledTextCtrl::CanUndo() const wxOVERRIDE +bool wxStyledTextCtrl::CanUndo() const { return SendMsg(SCI_CANUNDO, 0, 0) != 0; } @@ -1769,31 +1769,31 @@ void wxStyledTextCtrl::EmptyUndoBuffer() } // Undo one action in the undo history. -void wxStyledTextCtrl::Undo() wxOVERRIDE +void wxStyledTextCtrl::Undo() { SendMsg(SCI_UNDO, 0, 0); } // Cut the selection to the clipboard. -void wxStyledTextCtrl::Cut() wxOVERRIDE +void wxStyledTextCtrl::Cut() { SendMsg(SCI_CUT, 0, 0); } // Copy the selection to the clipboard. -void wxStyledTextCtrl::Copy() wxOVERRIDE +void wxStyledTextCtrl::Copy() { SendMsg(SCI_COPY, 0, 0); } // Paste the contents of the clipboard into the document replacing the selection. -void wxStyledTextCtrl::Paste() wxOVERRIDE +void wxStyledTextCtrl::Paste() { SendMsg(SCI_PASTE, 0, 0); } // Clear the selection. -void wxStyledTextCtrl::Clear() wxOVERRIDE +void wxStyledTextCtrl::Clear() { SendMsg(SCI_CLEAR, 0, 0); }