diff --git a/demos/bombs/bombs.h b/demos/bombs/bombs.h index a5000eb984..82270cfc8a 100644 --- a/demos/bombs/bombs.h +++ b/demos/bombs/bombs.h @@ -21,7 +21,7 @@ class BombsFrame; class BombsApp: public wxApp { public: - virtual bool OnInit(); + virtual bool OnInit() wxOVERRIDE; private : BombsFrame *m_frame; diff --git a/demos/forty/canvas.h b/demos/forty/canvas.h index 42a85dcb9a..cdfac4086e 100644 --- a/demos/forty/canvas.h +++ b/demos/forty/canvas.h @@ -23,7 +23,7 @@ public: FortyCanvas(wxWindow* parent, const wxPoint& pos, const wxSize& size); virtual ~FortyCanvas(); - virtual void OnDraw(wxDC& dc); + virtual void OnDraw(wxDC& dc) wxOVERRIDE; bool OnCloseCanvas(); void OnMouseEvent(wxMouseEvent& event); void SetCursorStyle(int x, int y); diff --git a/demos/forty/forty.h b/demos/forty/forty.h index 9d5665c128..815514d0a5 100644 --- a/demos/forty/forty.h +++ b/demos/forty/forty.h @@ -17,7 +17,7 @@ class FortyApp: public wxApp public: FortyApp(){} virtual ~FortyApp(); - bool OnInit(); + bool OnInit() wxOVERRIDE; static const wxColour& BackgroundColour(); static const wxColour& TextColour(); diff --git a/demos/forty/game.h b/demos/forty/game.h index bd2f63d66a..1e3a1296c4 100644 --- a/demos/forty/game.h +++ b/demos/forty/game.h @@ -24,11 +24,11 @@ class Pack : public Pile { public: Pack(int x, int y); virtual ~Pack(); - void Redraw(wxDC& dc); - void ResetPile() { m_topCard = NumCards - 1; } + void Redraw(wxDC& dc) wxOVERRIDE; + void ResetPile() wxOVERRIDE { m_topCard = NumCards - 1; } void Shuffle(); - void AddCard(Card* card); // Add card - void AddCard(wxDC& dc, Card* card) { AddCard(card); Redraw(dc); } + void AddCard(Card* card) wxOVERRIDE; // Add card + void AddCard(wxDC& dc, Card* card) wxOVERRIDE { AddCard(card); Redraw(dc); } }; @@ -39,7 +39,7 @@ class Base : public Pile { public: Base(int x, int y); virtual ~Base(){} - bool AcceptCard(Card* card); + bool AcceptCard(Card* card) wxOVERRIDE; }; @@ -50,7 +50,7 @@ class Foundation : public Pile { public: Foundation(int x, int y); virtual ~Foundation(){} - bool AcceptCard(Card* card); + bool AcceptCard(Card* card) wxOVERRIDE; }; @@ -61,9 +61,9 @@ class Discard : public Pile { public: Discard(int x, int y); virtual ~Discard(){} - void Redraw(wxDC& dc); - void GetTopCardPos(int& x, int& y); - Card* RemoveTopCard(wxDC& dc, int m_xOffset, int m_yOffset); + void Redraw(wxDC& dc) wxOVERRIDE; + void GetTopCardPos(int& x, int& y) wxOVERRIDE; + Card* RemoveTopCard(wxDC& dc, int m_xOffset, int m_yOffset) wxOVERRIDE; }; diff --git a/demos/fractal/fractal.cpp b/demos/fractal/fractal.cpp index 23e2a6f7d6..1de3b67f86 100644 --- a/demos/fractal/fractal.cpp +++ b/demos/fractal/fractal.cpp @@ -54,7 +54,7 @@ static wxMenuBar *menuBar = NULL; class MyApp: public wxApp { public: - bool OnInit(); + bool OnInit() wxOVERRIDE; }; wxIMPLEMENT_APP(MyApp); diff --git a/demos/life/game.cpp b/demos/life/game.cpp index c9b0353752..62440bd53b 100644 --- a/demos/life/game.cpp +++ b/demos/life/game.cpp @@ -926,8 +926,8 @@ class LifeModule: public wxModule public: LifeModule() {}; - bool OnInit(); - void OnExit(); + bool OnInit() wxOVERRIDE; + void OnExit() wxOVERRIDE; }; wxIMPLEMENT_DYNAMIC_CLASS(LifeModule, wxModule); diff --git a/demos/life/life.h b/demos/life/life.h index 9c51873414..1d4d2f1f0a 100644 --- a/demos/life/life.h +++ b/demos/life/life.h @@ -153,7 +153,7 @@ private: class LifeApp : public wxApp { public: - virtual bool OnInit(); + virtual bool OnInit() wxOVERRIDE; }; #endif // _LIFE_APP_H_ diff --git a/demos/poem/wxpoem.h b/demos/poem/wxpoem.h index 7837f63c8f..a3c7aead9f 100644 --- a/demos/poem/wxpoem.h +++ b/demos/poem/wxpoem.h @@ -21,8 +21,8 @@ class MyApp: public wxApp { public: - bool OnInit(); - int OnExit(); + bool OnInit() wxOVERRIDE; + int OnExit() wxOVERRIDE; }; wxDECLARE_APP(MyApp); diff --git a/include/wx/hash.h b/include/wx/hash.h index ae552cd84e..a080686812 100644 --- a/include/wx/hash.h +++ b/include/wx/hash.h @@ -275,7 +275,7 @@ private: eltype *Delete(long lhash, long key) \ { return (eltype*)DoDelete(key, lhash); } \ private: \ - virtual void DoDeleteContents( wxHashTableBase_Node* node ) \ + virtual void DoDeleteContents( wxHashTableBase_Node* node ) wxOVERRIDE\ { delete (eltype*)node->GetData(); } \ \ wxDECLARE_NO_COPY_CLASS(hashclass); \ diff --git a/include/wx/testing.h b/include/wx/testing.h index bc8e603394..d139f348a7 100644 --- a/include/wx/testing.h +++ b/include/wx/testing.h @@ -163,7 +163,7 @@ public: } protected: - virtual int Invoke(wxDialog *dlg) const + virtual int Invoke(wxDialog *dlg) const wxOVERRIDE { DialogType *t = dynamic_cast(dlg); if ( t ) @@ -173,7 +173,7 @@ protected: } /// Returns description of the expected dialog (by default, its class). - virtual wxString GetDefaultDescription() const + virtual wxString GetDefaultDescription() const wxOVERRIDE { return wxGetDialogClassDescription(wxCLASSINFO(T)); } @@ -220,7 +220,7 @@ public: } protected: - virtual int OnInvoked(T *WXUNUSED(dlg)) const + virtual int OnInvoked(T *WXUNUSED(dlg)) const wxOVERRIDE { return m_id; } @@ -239,7 +239,7 @@ public: } protected: - virtual wxString GetDefaultDescription() const + virtual wxString GetDefaultDescription() const wxOVERRIDE { // It can be useful to show which buttons the expected message box was // supposed to have, in case there could have been several of them. @@ -289,7 +289,7 @@ public: } protected: - virtual int OnInvoked(wxFileDialog *dlg) const + virtual int OnInvoked(wxFileDialog *dlg) const wxOVERRIDE { dlg->SetPath(m_path); return m_id; @@ -351,7 +351,7 @@ public: } protected: - virtual int Enter(wxDialog *dlg) + virtual int Enter(wxDialog *dlg) wxOVERRIDE { while ( !m_expectations.empty() ) { diff --git a/samples/access/accesstest.cpp b/samples/access/accesstest.cpp index fef6a149a5..d0f084685d 100644 --- a/samples/access/accesstest.cpp +++ b/samples/access/accesstest.cpp @@ -76,7 +76,7 @@ public: // this one is called on application startup and is a good place for the app // initialization (doing it here and not in the ctor allows to have an error // return: if OnInit() returns false, the application terminates) - virtual bool OnInit(); + virtual bool OnInit() wxOVERRIDE; }; @@ -199,7 +199,7 @@ public: FrameAccessible(wxWindow* win): wxWindowAccessible(win) {} // Gets the name of the specified object. - virtual wxAccStatus GetName(int childId, wxString* name) + virtual wxAccStatus GetName(int childId, wxString* name) wxOVERRIDE { if (childId == wxACC_SELF) { @@ -217,7 +217,7 @@ public: ScrolledWindowAccessible(wxWindow* win): wxWindowAccessible(win) {} // Gets the name of the specified object. - virtual wxAccStatus GetName(int childId, wxString* name) + virtual wxAccStatus GetName(int childId, wxString* name) wxOVERRIDE { if (childId == wxACC_SELF) { @@ -235,36 +235,36 @@ public: SplitterWindowAccessible(wxWindow* win): wxWindowAccessible(win) {} // Gets the name of the specified object. - virtual wxAccStatus GetName(int childId, wxString* name); + virtual wxAccStatus GetName(int childId, wxString* name) wxOVERRIDE; // Can return either a child object, or an integer // representing the child element, starting from 1. - virtual wxAccStatus HitTest(const wxPoint& pt, int* childId, wxAccessible** childObject); + virtual wxAccStatus HitTest(const wxPoint& pt, int* childId, wxAccessible** childObject) wxOVERRIDE; // Returns the rectangle for this object (id = 0) or a child element (id > 0). - virtual wxAccStatus GetLocation(wxRect& rect, int elementId); + virtual wxAccStatus GetLocation(wxRect& rect, int elementId) wxOVERRIDE; // Navigates from fromId to toId/toObject. virtual wxAccStatus Navigate(wxNavDir navDir, int fromId, - int* toId, wxAccessible** toObject); + int* toId, wxAccessible** toObject) wxOVERRIDE; // Gets the number of children. - virtual wxAccStatus GetChildCount(int* childCount); + virtual wxAccStatus GetChildCount(int* childCount) wxOVERRIDE; // Gets the specified child (starting from 1). // If *child is NULL and return value is wxACC_OK, // this means that the child is a simple element and // not an accessible object. - virtual wxAccStatus GetChild(int childId, wxAccessible** child); + virtual wxAccStatus GetChild(int childId, wxAccessible** child) wxOVERRIDE; // Gets the parent, or NULL. - virtual wxAccStatus GetParent(wxAccessible** parent); + virtual wxAccStatus GetParent(wxAccessible** parent) wxOVERRIDE; // Performs the default action. childId is 0 (the action for this object) // or > 0 (the action for a child). // Return wxACC_NOT_SUPPORTED if there is no default action for this // window (e.g. an edit control). - virtual wxAccStatus DoDefaultAction(int childId); + virtual wxAccStatus DoDefaultAction(int childId) wxOVERRIDE; // Gets the default action for this object (0) or > 0 (the action for a child). // Return wxACC_OK even if there is no action. actionName is the action, or the empty @@ -272,36 +272,36 @@ public: // The retrieved string describes the action that is performed on an object, // not what the object does as a result. For example, a toolbar button that prints // a document has a default action of "Press" rather than "Prints the current document." - virtual wxAccStatus GetDefaultAction(int childId, wxString* actionName); + virtual wxAccStatus GetDefaultAction(int childId, wxString* actionName) wxOVERRIDE; // Returns the description for this object or a child. - virtual wxAccStatus GetDescription(int childId, wxString* description); + virtual wxAccStatus GetDescription(int childId, wxString* description) wxOVERRIDE; // Returns help text for this object or a child, similar to tooltip text. - virtual wxAccStatus GetHelpText(int childId, wxString* helpText); + virtual wxAccStatus GetHelpText(int childId, wxString* helpText) wxOVERRIDE; // Returns the keyboard shortcut for this object or child. // Return e.g. ALT+K - virtual wxAccStatus GetKeyboardShortcut(int childId, wxString* shortcut); + virtual wxAccStatus GetKeyboardShortcut(int childId, wxString* shortcut) wxOVERRIDE; // Returns a role constant. - virtual wxAccStatus GetRole(int childId, wxAccRole* role); + virtual wxAccStatus GetRole(int childId, wxAccRole* role) wxOVERRIDE; // Returns a state constant. - virtual wxAccStatus GetState(int childId, long* state); + virtual wxAccStatus GetState(int childId, long* state) wxOVERRIDE; // Returns a localized string representing the value for the object // or child. - virtual wxAccStatus GetValue(int childId, wxString* strValue); + virtual wxAccStatus GetValue(int childId, wxString* strValue) wxOVERRIDE; // Selects the object or child. - virtual wxAccStatus Select(int childId, wxAccSelectionFlags selectFlags); + virtual wxAccStatus Select(int childId, wxAccSelectionFlags selectFlags) wxOVERRIDE; // Gets the window with the keyboard focus. // If childId is 0 and child is NULL, no object in // this subhierarchy has the focus. // If this object has the focus, child should be 'this'. - virtual wxAccStatus GetFocus(int* childId, wxAccessible** child); + virtual wxAccStatus GetFocus(int* childId, wxAccessible** child) wxOVERRIDE; // Gets a variant representing the selected children // of this object. @@ -311,7 +311,7 @@ public: // - an integer representing the selected child element, // or 0 if this object is selected (GetType() == wxT("long")) // - a "void*" pointer to a wxAccessible child object - virtual wxAccStatus GetSelections(wxVariant* selections); + virtual wxAccStatus GetSelections(wxVariant* selections) wxOVERRIDE; }; diff --git a/samples/dll/wx_exe.cpp b/samples/dll/wx_exe.cpp index 0f5f331dcc..1d3217e8de 100644 --- a/samples/dll/wx_exe.cpp +++ b/samples/dll/wx_exe.cpp @@ -58,8 +58,8 @@ public: class MainApp : public wxApp { public: - virtual bool OnInit(); - virtual int OnExit(); + virtual bool OnInit() wxOVERRIDE; + virtual int OnExit() wxOVERRIDE; }; diff --git a/samples/nativdlg/nativdlg.h b/samples/nativdlg/nativdlg.h index b0f47bbb91..468b0ed2c9 100644 --- a/samples/nativdlg/nativdlg.h +++ b/samples/nativdlg/nativdlg.h @@ -13,7 +13,7 @@ class MyApp: public wxApp { public: MyApp(void){}; - bool OnInit(void); + bool OnInit(void) wxOVERRIDE; }; class MyFrame: public wxFrame diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index 91f6df2369..d9883717fa 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -31,7 +31,7 @@ class OwnerDrawnApp: public wxApp { public: - bool OnInit(); + bool OnInit() wxOVERRIDE; }; // Define a new frame type diff --git a/samples/regtest/regtest.cpp b/samples/regtest/regtest.cpp index 645d40e913..20f7e095ad 100644 --- a/samples/regtest/regtest.cpp +++ b/samples/regtest/regtest.cpp @@ -42,7 +42,7 @@ class RegApp : public wxApp { public: - bool OnInit(); + bool OnInit() wxOVERRIDE; }; // ---------------------------------------------------------------------------- diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index f35ff629ee..b706b28c3c 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -487,15 +487,15 @@ public: m_value = value; } - virtual bool Eq(wxVariantData& WXUNUSED(data)) const + virtual bool Eq(wxVariantData& WXUNUSED(data)) const wxOVERRIDE { return false; } // What type is it? Return a string name. - virtual wxString GetType() const { return "MyClass"; } + virtual wxString GetType() const wxOVERRIDE { return "MyClass"; } - virtual wxVariantData* Clone() const + virtual wxVariantData* Clone() const wxOVERRIDE { return new wxMyVariantData(m_value); } diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index a574d784ec..ce12543b3e 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -1159,7 +1159,7 @@ template class ArchiveNotifier : public NotifierT { public: - void OnEntryUpdated(EntryT& WXUNUSED(entry)) { } + void OnEntryUpdated(EntryT& WXUNUSED(entry)) wxOVERRIDE { } }; template diff --git a/tests/archive/archivetest.h b/tests/archive/archivetest.h index d1b4d88375..88186448d9 100644 --- a/tests/archive/archivetest.h +++ b/tests/archive/archivetest.h @@ -42,8 +42,8 @@ public: ~TestOutputStream() { delete [] m_data; } int GetOptions() const { return m_options; } - wxFileOffset GetLength() const { return m_size; } - bool IsSeekable() const { return (m_options & PipeOut) == 0; } + wxFileOffset GetLength() const wxOVERRIDE { return m_size; } + bool IsSeekable() const wxOVERRIDE { return (m_options & PipeOut) == 0; } // gives away the data, this stream is then empty, and can be reused void GetData(char*& data, size_t& size); @@ -51,9 +51,9 @@ public: private: void Init(); - wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode); - wxFileOffset OnSysTell() const; - size_t OnSysWrite(const void *buffer, size_t size); + wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode) wxOVERRIDE; + wxFileOffset OnSysTell() const wxOVERRIDE; + size_t OnSysWrite(const void *buffer, size_t size) wxOVERRIDE; int m_options; size_t m_pos; @@ -71,7 +71,7 @@ public: AtLast = 0x01, // eof before an attempt to read past the last byte WithError = 0x02 // give an error instead of eof }; - + // ctor takes the data from the output stream, which is then empty TestInputStream(TestOutputStream& out, int eoftype) : m_data(NULL), m_eoftype(eoftype) { SetData(out); } @@ -80,17 +80,17 @@ public: ~TestInputStream() { delete [] m_data; } void Rewind(); - wxFileOffset GetLength() const { return m_size; } - bool IsSeekable() const { return (m_options & PipeIn) == 0; } + wxFileOffset GetLength() const wxOVERRIDE { return m_size; } + bool IsSeekable() const wxOVERRIDE { return (m_options & PipeIn) == 0; } void SetData(TestOutputStream& out); void Chop(size_t size) { m_size = size; } char& operator [](size_t pos) { return m_data[pos]; } private: - wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode); - wxFileOffset OnSysTell() const; - size_t OnSysRead(void *buffer, size_t size); + wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode) wxOVERRIDE; + wxFileOffset OnSysTell() const wxOVERRIDE; + size_t OnSysRead(void *buffer, size_t size) wxOVERRIDE; int m_options; size_t m_pos; @@ -171,7 +171,7 @@ protected: typedef typename ClassFactoryT::pairiter_type PairIterT; // the entry point for the test - void runTest(); + void runTest() wxOVERRIDE; // create the test data void CreateTestData(); diff --git a/tests/archive/ziptest.cpp b/tests/archive/ziptest.cpp index 0abe646e4f..c56fb14526 100644 --- a/tests/archive/ziptest.cpp +++ b/tests/archive/ziptest.cpp @@ -42,19 +42,19 @@ public: { } protected: - void OnCreateArchive(wxZipOutputStream& zip); + void OnCreateArchive(wxZipOutputStream& zip) wxOVERRIDE; - void OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal); + void OnArchiveExtracted(wxZipInputStream& zip, int expectedTotal) wxOVERRIDE; void OnCreateEntry(wxZipOutputStream& zip, TestEntry& testEntry, - wxZipEntry *entry); + wxZipEntry *entry) wxOVERRIDE; void OnEntryExtracted(wxZipEntry& entry, const TestEntry& testEntry, - wxZipInputStream *arc); + wxZipInputStream *arc) wxOVERRIDE; - void OnSetNotifier(EntryT& entry); + void OnSetNotifier(EntryT& entry) wxOVERRIDE; int m_count; wxString m_comment; @@ -136,7 +136,7 @@ void ZipTestCase::OnEntryExtracted(wxZipEntry& entry, class ZipNotifier : public wxZipNotifier { public: - void OnEntryUpdated(wxZipEntry& entry); + void OnEntryUpdated(wxZipEntry& entry) wxOVERRIDE; }; void ZipNotifier::OnEntryUpdated(wxZipEntry& entry) @@ -166,7 +166,7 @@ public: { } protected: - void runTest(); + void runTest() wxOVERRIDE; int m_options; int m_id; }; diff --git a/tests/cmdline/cmdlinetest.cpp b/tests/cmdline/cmdlinetest.cpp index d68b57cd6b..ee100284ff 100644 --- a/tests/cmdline/cmdlinetest.cpp +++ b/tests/cmdline/cmdlinetest.cpp @@ -150,7 +150,7 @@ void CmdLineTestCase::ParseSwitches() class NoMessageOutput : public wxMessageOutput { public: - virtual void Output(const wxString& WXUNUSED(str)) { } + virtual void Output(const wxString& WXUNUSED(str)) wxOVERRIDE { } } noMessages; wxMessageOutput * const old = wxMessageOutput::Set(&noMessages); diff --git a/tests/controls/dialogtest.cpp b/tests/controls/dialogtest.cpp index 031757a259..486e087616 100644 --- a/tests/controls/dialogtest.cpp +++ b/tests/controls/dialogtest.cpp @@ -111,7 +111,7 @@ public: wxExpectModal(int valueToSet) : m_valueToSet(valueToSet) {} protected: - virtual int OnInvoked(MyDialog *dlg) const + virtual int OnInvoked(MyDialog *dlg) const wxOVERRIDE { // Simulate the user entering the expected number: dlg->m_value = m_valueToSet; diff --git a/tests/controls/itemcontainertest.cpp b/tests/controls/itemcontainertest.cpp index 0129d6dce5..874e926794 100644 --- a/tests/controls/itemcontainertest.cpp +++ b/tests/controls/itemcontainertest.cpp @@ -282,7 +282,7 @@ void ItemContainerTestCase::SetSelection() class CommandEventHandler : public wxEvtHandler { public: - virtual bool ProcessEvent(wxEvent& event) + virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE { CPPUNIT_ASSERT_MESSAGE ( diff --git a/tests/controls/markuptest.cpp b/tests/controls/markuptest.cpp index 29df425228..3e66183338 100644 --- a/tests/controls/markuptest.cpp +++ b/tests/controls/markuptest.cpp @@ -57,30 +57,30 @@ void MarkupTestCase::RoundTrip() const wxString& GetText() const { return m_text; } - virtual void OnText(const wxString& text) { m_text += text; } + virtual void OnText(const wxString& text) wxOVERRIDE { m_text += text; } - virtual void OnBoldStart() { m_text += ""; } - virtual void OnBoldEnd() { m_text += ""; } + virtual void OnBoldStart() wxOVERRIDE { m_text += ""; } + virtual void OnBoldEnd() wxOVERRIDE { m_text += ""; } - virtual void OnItalicStart() { m_text += ""; } - virtual void OnItalicEnd() { m_text += ""; } + virtual void OnItalicStart() wxOVERRIDE { m_text += ""; } + virtual void OnItalicEnd() wxOVERRIDE { m_text += ""; } - virtual void OnUnderlinedStart() { m_text += ""; } - virtual void OnUnderlinedEnd() { m_text += ""; } + virtual void OnUnderlinedStart() wxOVERRIDE { m_text += ""; } + virtual void OnUnderlinedEnd() wxOVERRIDE { m_text += ""; } - virtual void OnStrikethroughStart() { m_text += ""; } - virtual void OnStrikethroughEnd() { m_text += ""; } + virtual void OnStrikethroughStart() wxOVERRIDE { m_text += ""; } + virtual void OnStrikethroughEnd() wxOVERRIDE { m_text += ""; } - virtual void OnBigStart() { m_text += ""; } - virtual void OnBigEnd() { m_text += ""; } + virtual void OnBigStart() wxOVERRIDE { m_text += ""; } + virtual void OnBigEnd() wxOVERRIDE { m_text += ""; } - virtual void OnSmallStart() { m_text += ""; } - virtual void OnSmallEnd() { m_text += ""; } + virtual void OnSmallStart() wxOVERRIDE { m_text += ""; } + virtual void OnSmallEnd() wxOVERRIDE { m_text += ""; } - virtual void OnTeletypeStart() { m_text += ""; } - virtual void OnTeletypeEnd() { m_text += ""; } + virtual void OnTeletypeStart() wxOVERRIDE { m_text += ""; } + virtual void OnTeletypeEnd() wxOVERRIDE { m_text += ""; } - virtual void OnSpanStart(const wxMarkupSpanAttributes& attrs) + virtual void OnSpanStart(const wxMarkupSpanAttributes& attrs) wxOVERRIDE { m_text << ""; } - virtual void OnSpanEnd(const wxMarkupSpanAttributes& WXUNUSED(attrs)) + virtual void OnSpanEnd(const wxMarkupSpanAttributes& WXUNUSED(attrs)) wxOVERRIDE { m_text += ""; } diff --git a/tests/controls/virtlistctrltest.cpp b/tests/controls/virtlistctrltest.cpp index f04f460a00..de52896460 100644 --- a/tests/controls/virtlistctrltest.cpp +++ b/tests/controls/virtlistctrltest.cpp @@ -73,7 +73,7 @@ void VirtListCtrlTestCase::setUp() } protected: - virtual wxString OnGetItemText(long item, long column) const + virtual wxString OnGetItemText(long item, long column) const wxOVERRIDE { return wxString::Format("Row %ld, col %ld", item, column); } diff --git a/tests/drawing/drawing.h b/tests/drawing/drawing.h index bf6606500b..8596a2c3c5 100644 --- a/tests/drawing/drawing.h +++ b/tests/drawing/drawing.h @@ -62,14 +62,14 @@ private: { public: virtual ~ImageGraphicsContextLifeCycle() {} - virtual wxString GetIdForFileName () const { return "image"; } - virtual wxString GetExtensionForFileName () const { return "png"; } - virtual bool UseImageComparison() const { return true; } - virtual bool PlatformIndependent() const { return false; } + virtual wxString GetIdForFileName () const wxOVERRIDE { return "image"; } + virtual wxString GetExtensionForFileName () const wxOVERRIDE { return "png"; } + virtual bool UseImageComparison() const wxOVERRIDE { return true; } + virtual bool PlatformIndependent() const wxOVERRIDE { return false; } virtual wxGraphicsContext *BuildNewContext (wxSize expectedSize, - double pointsPerInch, const wxFileName &targetFileName); - virtual void SaveBuiltContext (wxGraphicsContext *&gc); - virtual void CleanUp (wxGraphicsContext *gc); + double pointsPerInch, const wxFileName &targetFileName) wxOVERRIDE; + virtual void SaveBuiltContext (wxGraphicsContext *&gc) wxOVERRIDE; + virtual void CleanUp (wxGraphicsContext *gc) wxOVERRIDE; private: wxImage *m_image; wxString m_targetFileName; @@ -81,14 +81,14 @@ private: class SvgGraphicsContextLifeCycle: public DrawingTestGCFactory { public: - virtual wxString GetIdForFileName () const { return "svg"; } - virtual wxString GetExtensionForFileName () const { return "svg"; } - virtual bool UseImageComparison() const { return false; } - virtual bool PlatformIndependent() const { return true; } + virtual wxString GetIdForFileName () const wxOVERRIDE { return "svg"; } + virtual wxString GetExtensionForFileName () const wxOVERRIDE { return "svg"; } + virtual bool UseImageComparison() const wxOVERRIDE { return false; } + virtual bool PlatformIndependent() const wxOVERRIDE { return true; } virtual wxGraphicsContext *BuildNewContext (wxSize expectedSize, - double pointsPerInch, const wxFileName &targetFileName); - virtual void SaveBuiltContext (wxGraphicsContext *&gc); - virtual void CleanUp (wxGraphicsContext *gc); + double pointsPerInch, const wxFileName &targetFileName) wxOVERRIDE; + virtual void SaveBuiltContext (wxGraphicsContext *&gc) wxOVERRIDE; + virtual void CleanUp (wxGraphicsContext *gc) wxOVERRIDE; private: wxSVGFileDC *m_svgFileDc; diff --git a/tests/drawing/pluginsample.cpp b/tests/drawing/pluginsample.cpp index a8bee2c1ea..2a8026c983 100644 --- a/tests/drawing/pluginsample.cpp +++ b/tests/drawing/pluginsample.cpp @@ -32,18 +32,18 @@ public: virtual ~SampleDrawingTestGCFactory() { } - virtual wxString GetIdForFileName () const { return "sample-plg"; } - virtual wxString GetExtensionForFileName () const { return "bmp"; } + virtual wxString GetIdForFileName () const wxOVERRIDE { return "sample-plg"; } + virtual wxString GetExtensionForFileName () const wxOVERRIDE { return "bmp"; } // Bitmaps are handled by wx code they should be binarily equal - virtual bool UseImageComparison() const { return false; } + virtual bool UseImageComparison() const wxOVERRIDE { return false; } // We use wxGraphicsContext, its implementation is not platform independent // and returns may slightly vary - virtual bool PlatformIndependent() const { return false; } + virtual bool PlatformIndependent() const wxOVERRIDE { return false; } virtual wxGraphicsContext *BuildNewContext (wxSize expectedSize, - double WXUNUSED(pointsPerInch), const wxFileName &targetFileName) { + double WXUNUSED(pointsPerInch), const wxFileName &targetFileName) wxOVERRIDE { m_image = new wxImage (expectedSize); m_image->InitAlpha(); @@ -57,14 +57,14 @@ public: // Let's the opportunity to actually save the context and associated data // If saving requires deleting the wxGraphicsContext object the // implementer is free to do it but @c gc must then be nulled - virtual void SaveBuiltContext (wxGraphicsContext *&gc) { + virtual void SaveBuiltContext (wxGraphicsContext *&gc) wxOVERRIDE { wxDELETE(gc); m_image->SaveFile (m_targetFileName); } // Cleans @c gc and internal data if any - virtual void CleanUp (wxGraphicsContext *gc) { + virtual void CleanUp (wxGraphicsContext *gc) wxOVERRIDE { delete gc; m_targetFileName.Empty(); wxDELETE(m_image); diff --git a/tests/events/evthandler.cpp b/tests/events/evthandler.cpp index b25f4f65aa..a2ef903dbb 100644 --- a/tests/events/evthandler.cpp +++ b/tests/events/evthandler.cpp @@ -32,7 +32,7 @@ class MyEvent : public wxEvent public: MyEvent() : wxEvent(0, MyEventType) { } - virtual wxEvent *Clone() const { return new MyEvent; } + virtual wxEvent *Clone() const wxOVERRIDE { return new MyEvent; } }; typedef void (wxEvtHandler::*MyEventFunction)(MyEvent&); diff --git a/tests/events/evtlooptest.cpp b/tests/events/evtlooptest.cpp index d9516f8eb6..9eb51ce700 100644 --- a/tests/events/evtlooptest.cpp +++ b/tests/events/evtlooptest.cpp @@ -63,7 +63,7 @@ public: { } - virtual void Notify() + virtual void Notify() wxOVERRIDE { m_loop.ScheduleExit(m_rc); } @@ -87,7 +87,7 @@ public: { } - virtual void Notify() + virtual void Notify() wxOVERRIDE { wxEventLoop loopInner; ScheduleLoopExitTimer timerInner(loopInner, EXIT_CODE_INNER_LOOP); diff --git a/tests/events/propagation.cpp b/tests/events/propagation.cpp index c0d302b7ee..8b22866eda 100644 --- a/tests/events/propagation.cpp +++ b/tests/events/propagation.cpp @@ -71,7 +71,7 @@ public: // override ProcessEvent() to confirm that it is called for all event // handlers in the chain - virtual bool ProcessEvent(wxEvent& event) + virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE { if ( event.GetEventType() == m_evtType ) g_str += 'o'; // "o" == "overridden" @@ -190,7 +190,7 @@ public: Update(); } - virtual void OnDraw(wxDC& WXUNUSED(dc)) + virtual void OnDraw(wxDC& WXUNUSED(dc)) wxOVERRIDE { g_str += 'D'; // draw } @@ -360,7 +360,7 @@ void EventPropagationTestCase::ForwardEvent() public: ForwardEvtHandler(wxEvtHandler& h) : m_h(&h) { } - virtual bool ProcessEvent(wxEvent& event) + virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE { g_str += 'f'; @@ -516,7 +516,7 @@ class EventTestView : public wxView public: EventTestView() { } - virtual void OnDraw(wxDC*) { } + virtual void OnDraw(wxDC*) wxOVERRIDE { } wxDECLARE_DYNAMIC_CLASS(EventTestView); }; diff --git a/tests/events/timertest.cpp b/tests/events/timertest.cpp index f43b7a3d75..25e71d3d69 100644 --- a/tests/events/timertest.cpp +++ b/tests/events/timertest.cpp @@ -94,7 +94,7 @@ void TimerEventTestCase::OneShot() } private: - virtual void Tick() { m_loop.Exit(); } + virtual void Tick() wxOVERRIDE { m_loop.Exit(); } wxEventLoopBase& m_loop; diff --git a/tests/exec/exec.cpp b/tests/exec/exec.cpp index bc2cdfe052..f350376043 100644 --- a/tests/exec/exec.cpp +++ b/tests/exec/exec.cpp @@ -135,7 +135,7 @@ private: return wxExecuteReturnCode; } - void Notify() + void Notify() wxOVERRIDE { // Run wxExecute inside the event loop. wxExecuteReturnCode = wxExecute(command, flags, callback); @@ -323,7 +323,7 @@ public: } // may be overridden to be notified about process termination - virtual void OnTerminate(int WXUNUSED(pid), int WXUNUSED(status)) + virtual void OnTerminate(int WXUNUSED(pid), int WXUNUSED(status)) wxOVERRIDE { wxEventLoop::GetActive()->ScheduleExit(); } @@ -469,7 +469,7 @@ void ExecTestCase::TestOverlappedSyncExecute() StartOnce(10); } - virtual void Notify() + virtual void Notify() wxOVERRIDE { wxExecute(m_command, m_outputArray); } diff --git a/tests/file/dir.cpp b/tests/file/dir.cpp index d788ee642e..e76c279598 100644 --- a/tests/file/dir.cpp +++ b/tests/file/dir.cpp @@ -147,12 +147,12 @@ class TestDirTraverser : public wxDirTraverser public: wxArrayString dirs; - virtual wxDirTraverseResult OnFile(const wxString& WXUNUSED(filename)) + virtual wxDirTraverseResult OnFile(const wxString& WXUNUSED(filename)) wxOVERRIDE { return wxDIR_CONTINUE; } - virtual wxDirTraverseResult OnDir(const wxString& dirname) + virtual wxDirTraverseResult OnDir(const wxString& dirname) wxOVERRIDE { dirs.push_back(dirname); return wxDIR_CONTINUE; diff --git a/tests/filesys/filesystest.cpp b/tests/filesys/filesystest.cpp index b1223b2749..6eea598ede 100644 --- a/tests/filesys/filesystest.cpp +++ b/tests/filesys/filesystest.cpp @@ -39,9 +39,9 @@ public: wxString RightLocation(const wxString& p) { return GetRightLocation(p); } wxString Anchor(const wxString& p) { return GetAnchor(p); } - bool CanOpen(const wxString& WXUNUSED(url)) { return false; } + bool CanOpen(const wxString& WXUNUSED(url)) wxOVERRIDE { return false; } wxFSFile *OpenFile(wxFileSystem& WXUNUSED(fs), - const wxString& WXUNUSED(url)) { return NULL; } + const wxString& WXUNUSED(url)) wxOVERRIDE { return NULL; } }; diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index e074b2df9d..95a9482301 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -524,12 +524,12 @@ void FileSystemWatcherTestCase::TestEventCreate() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.CreateFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_CREATE); event.SetPath(eg.m_file); @@ -555,12 +555,12 @@ void FileSystemWatcherTestCase::TestEventDelete() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.DeleteFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_DELETE); event.SetPath(eg.m_old); @@ -588,12 +588,12 @@ void FileSystemWatcherTestCase::TestEventRename() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.RenameFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_RENAME); event.SetPath(eg.m_old); @@ -619,12 +619,12 @@ void FileSystemWatcherTestCase::TestEventModify() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.ModifyFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_MODIFY); event.SetPath(eg.m_file); @@ -650,12 +650,12 @@ void FileSystemWatcherTestCase::TestEventAccess() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.ReadFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_ACCESS); event.SetPath(eg.m_file); @@ -683,12 +683,12 @@ void FileSystemWatcherTestCase::TestEventAttribute() class EventTester : public EventHandler { public: - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { CPPUNIT_ASSERT(eg.TouchFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_ATTRIB); event.SetPath(eg.m_file); @@ -718,7 +718,7 @@ void FileSystemWatcherTestCase::TestSingleWatchtypeEvent() // DELETE as the event path fields would be wrong in CheckResult() EventTester() : EventHandler(wxFSW_EVENT_ACCESS) {} - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { // As wxFSW_EVENT_ACCESS is passed to the ctor only ReadFile() will // generate an event. Without it they all will, and the test fails @@ -727,7 +727,7 @@ void FileSystemWatcherTestCase::TestSingleWatchtypeEvent() CPPUNIT_ASSERT(eg.ReadFile()); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { wxFileSystemWatcherEvent event(wxFSW_EVENT_ACCESS); event.SetPath(eg.m_file); @@ -925,7 +925,7 @@ void FileSystemWatcherTestCase::TestTrees() CPPUNIT_ASSERT_EQUAL(0, m_watcher->GetWatchedPathsCount()); } - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { // We don't use this function for events. Just run the tests @@ -963,14 +963,14 @@ void FileSystemWatcherTestCase::TestTrees() Exit(); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { CPPUNIT_FAIL("Shouldn't be called"); return wxFileSystemWatcherEvent(wxFSW_EVENT_ERROR); } - virtual void CheckResult() + virtual void CheckResult() wxOVERRIDE { // Do nothing. We override this to prevent receiving events in // ExpectedEvent() @@ -1016,25 +1016,25 @@ public: Start(1000, true); } - virtual void GenerateEvent() + virtual void GenerateEvent() wxOVERRIDE { m_watcher->Remove(EventGenerator::GetWatchDir()); CPPUNIT_ASSERT(eg.CreateFile()); } - virtual void CheckResult() + virtual void CheckResult() wxOVERRIDE { CPPUNIT_ASSERT( m_events.empty() ); } - virtual wxFileSystemWatcherEvent ExpectedEvent() + virtual wxFileSystemWatcherEvent ExpectedEvent() wxOVERRIDE { CPPUNIT_FAIL( "Shouldn't be called" ); return wxFileSystemWatcherEvent(wxFSW_EVENT_ERROR); } - virtual void Notify() + virtual void Notify() wxOVERRIDE { SendIdle(); } diff --git a/tests/html/htmlparser.cpp b/tests/html/htmlparser.cpp index 61042a4616..56ef61eda3 100644 --- a/tests/html/htmlparser.cpp +++ b/tests/html/htmlparser.cpp @@ -30,10 +30,10 @@ TEST_CASE("wxHtmlParser::ParseInvalid", "[html][parser][error]") class NullParser : public wxHtmlWinParser { public: - virtual wxObject *GetProduct() { return NULL; } + virtual wxObject *GetProduct() wxOVERRIDE { return NULL; } protected: - virtual void AddText(const wxString& WXUNUSED(txt)) { } + virtual void AddText(const wxString& WXUNUSED(txt)) wxOVERRIDE { } }; NullParser p; diff --git a/tests/interactive/output.cpp b/tests/interactive/output.cpp index 98d0ac7595..9fdb26cc72 100644 --- a/tests/interactive/output.cpp +++ b/tests/interactive/output.cpp @@ -319,7 +319,7 @@ public: { } - virtual void Walk(size_t skip = 1, size_t maxdepth = wxSTACKWALKER_MAX_DEPTH) + virtual void Walk(size_t skip = 1, size_t maxdepth = wxSTACKWALKER_MAX_DEPTH) wxOVERRIDE { wxPuts(wxT("Stack dump:")); @@ -327,7 +327,7 @@ public: } protected: - virtual void OnStackFrame(const wxStackFrame& frame) + virtual void OnStackFrame(const wxStackFrame& frame) wxOVERRIDE { wxPrintf("[%2zu] ", frame.GetLevel()); diff --git a/tests/log/logtest.cpp b/tests/log/logtest.cpp index 353f136c62..8ab3c692fa 100644 --- a/tests/log/logtest.cpp +++ b/tests/log/logtest.cpp @@ -86,7 +86,7 @@ public: protected: virtual void DoLogRecord(wxLogLevel level, const wxString& msg, - const wxLogRecordInfo& info) + const wxLogRecordInfo& info) wxOVERRIDE { m_logs[level] = msg; m_logsInfo[level] = info; diff --git a/tests/misc/module.cpp b/tests/misc/module.cpp index 607a3d90a8..89baff6436 100644 --- a/tests/misc/module.cpp +++ b/tests/misc/module.cpp @@ -28,8 +28,8 @@ char g_strLoadOrder[256] = "\0"; class Module : public wxModule { protected: - virtual bool OnInit() { wxStrcat(g_strLoadOrder, GetClassInfo()->GetClassName()); return true; } - virtual void OnExit() { } + virtual bool OnInit() wxOVERRIDE { wxStrcat(g_strLoadOrder, GetClassInfo()->GetClassName()); return true; } + virtual void OnExit() wxOVERRIDE { } }; class ModuleA : public Module diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index b3610cd374..2c26019dc5 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -77,7 +77,7 @@ public: protected: // run this testcase - void runTest(); + void runTest() wxOVERRIDE; private: // workers diff --git a/tests/regex/wxregextest.cpp b/tests/regex/wxregextest.cpp index 3576eaa147..c65dd71714 100644 --- a/tests/regex/wxregextest.cpp +++ b/tests/regex/wxregextest.cpp @@ -43,7 +43,7 @@ public: { } protected: - void runTest(); + void runTest() wxOVERRIDE; private: wxString m_pattern; @@ -80,7 +80,7 @@ public: { } protected: - void runTest(); + void runTest() wxOVERRIDE; private: wxString m_pattern; @@ -146,7 +146,7 @@ public: { } protected: - void runTest(); + void runTest() wxOVERRIDE; private: wxString m_pattern; diff --git a/tests/streams/fileback.cpp b/tests/streams/fileback.cpp index 54561a56b9..73d9ee84f1 100644 --- a/tests/streams/fileback.cpp +++ b/tests/streams/fileback.cpp @@ -33,7 +33,7 @@ public: TestStream(const void *buf, size_t size) : wxMemoryInputStream(buf, size) { } - wxFileOffset GetLength() const { return wxInvalidOffset; } + wxFileOffset GetLength() const wxOVERRIDE { return wxInvalidOffset; } }; diff --git a/tests/streams/largefile.cpp b/tests/streams/largefile.cpp index fe2bf34133..ee753d8cbf 100644 --- a/tests/streams/largefile.cpp +++ b/tests/streams/largefile.cpp @@ -70,7 +70,7 @@ public: virtual ~LargeFileTest() { } protected: - void runTest(); + void runTest() wxOVERRIDE; virtual wxInputStream *MakeInStream(const wxString& name) const = 0; virtual wxOutputStream *MakeOutStream(const wxString& name) const = 0; @@ -210,9 +210,9 @@ public: LargeFileTest_wxFile() : LargeFileTest("wxFile streams") { } protected: - wxInputStream *MakeInStream(const wxString& name) const; - wxOutputStream *MakeOutStream(const wxString& name) const; - bool HasLFS() const { return (wxFileOffset)0xffffffff > 0; } + wxInputStream *MakeInStream(const wxString& name) const wxOVERRIDE; + wxOutputStream *MakeOutStream(const wxString& name) const wxOVERRIDE; + bool HasLFS() const wxOVERRIDE { return (wxFileOffset)0xffffffff > 0; } }; wxInputStream *LargeFileTest_wxFile::MakeInStream(const wxString& name) const @@ -242,9 +242,9 @@ public: LargeFileTest_wxFFile() : LargeFileTest("wxFFile streams") { } protected: - wxInputStream *MakeInStream(const wxString& name) const; - wxOutputStream *MakeOutStream(const wxString& name) const; - bool HasLFS() const; + wxInputStream *MakeInStream(const wxString& name) const wxOVERRIDE; + wxOutputStream *MakeOutStream(const wxString& name) const wxOVERRIDE; + bool HasLFS() const wxOVERRIDE; }; wxInputStream *LargeFileTest_wxFFile::MakeInStream(const wxString& name) const diff --git a/tests/streams/socketstream.cpp b/tests/streams/socketstream.cpp index 3a48be19a4..4c2d8433a2 100644 --- a/tests/streams/socketstream.cpp +++ b/tests/streams/socketstream.cpp @@ -66,7 +66,7 @@ public: } protected: - virtual void *Entry() + virtual void *Entry() wxOVERRIDE { wxSocketServer srv(LocalAddress(m_port), wxSOCKET_REUSEADDR); CPPUNIT_ASSERT( srv.IsOk() ); diff --git a/tests/strings/vsnprintf.cpp b/tests/strings/vsnprintf.cpp index 92dda3937d..711e2e9209 100644 --- a/tests/strings/vsnprintf.cpp +++ b/tests/strings/vsnprintf.cpp @@ -116,7 +116,7 @@ class VsnprintfTestCase : public CppUnit::TestCase public: VsnprintfTestCase() {} - virtual void setUp(); + virtual void setUp() wxOVERRIDE; private: CPPUNIT_TEST_SUITE( VsnprintfTestCase ); diff --git a/tests/test.cpp b/tests/test.cpp index 339d091396..fdb0ebf6e4 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -186,11 +186,11 @@ public: TestApp(); // standard overrides - virtual bool OnInit(); - virtual int OnExit(); + virtual bool OnInit() wxOVERRIDE; + virtual int OnExit() wxOVERRIDE; #ifdef __WIN32__ - virtual wxAppTraits *CreateTraits() + virtual wxAppTraits *CreateTraits() wxOVERRIDE { // Define a new class just to customize CanUseStderr() behaviour. class TestAppTraits : public TestAppTraitsBase @@ -200,11 +200,11 @@ public: // in this case we really don't want to show any message boxes, as // wxMessageOutputBest, used e.g. from the default implementation // of wxApp::OnUnhandledException(), would do by default. - virtual bool CanUseStderr() { return true; } + virtual bool CanUseStderr() wxOVERRIDE { return true; } // Overriding CanUseStderr() is not enough, we also need to // override this one to avoid returning false from it. - virtual bool WriteToStderr(const wxString& text) + virtual bool WriteToStderr(const wxString& text) wxOVERRIDE { wxFputs(text, stderr); fflush(stderr); @@ -221,7 +221,7 @@ public: // Also override this method to avoid showing any dialogs from here -- and // show some details about the exception along the way. - virtual bool OnExceptionInMainLoop() + virtual bool OnExceptionInMainLoop() wxOVERRIDE { wxFprintf(stderr, "Unhandled exception in the main loop: %s\n", Catch::translateActiveException()); @@ -230,8 +230,8 @@ public: } // used by events propagation test - virtual int FilterEvent(wxEvent& event); - virtual bool ProcessEvent(wxEvent& event); + virtual int FilterEvent(wxEvent& event) wxOVERRIDE; + virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE; void SetFilterEventFunc(FilterEventFunc f) { m_filterEventFunc = f; } void SetProcessEventFunc(ProcessEventFunc f) { m_processEventFunc = f; } @@ -269,7 +269,7 @@ public: event.Skip(); } - virtual int OnRun() + virtual int OnRun() wxOVERRIDE { if ( TestAppBase::OnRun() != 0 ) m_exitcode = EXIT_FAILURE; @@ -277,7 +277,7 @@ public: return m_exitcode; } #else // !wxUSE_GUI - virtual int OnRun() + virtual int OnRun() wxOVERRIDE { return RunTests(); } diff --git a/tests/thread/atomic.cpp b/tests/thread/atomic.cpp index 7fae5d69fe..3de4f2e38f 100644 --- a/tests/thread/atomic.cpp +++ b/tests/thread/atomic.cpp @@ -62,7 +62,7 @@ private: m_operateOn(operateOn), m_testType(testType) {} // thread execution starts here - virtual void *Entry(); + virtual void *Entry() wxOVERRIDE; public: wxAtomicInt &m_operateOn; diff --git a/tests/thread/misc.cpp b/tests/thread/misc.cpp index d3a02c4f24..3a99b3bb35 100644 --- a/tests/thread/misc.cpp +++ b/tests/thread/misc.cpp @@ -37,7 +37,7 @@ public: { m_n = n; Create(); } // thread execution starts here - virtual ExitCode Entry(); + virtual ExitCode Entry() wxOVERRIDE; private: size_t m_n; @@ -70,10 +70,10 @@ public: } // thread execution starts here - virtual ExitCode Entry(); + virtual ExitCode Entry() wxOVERRIDE; // and stops here - virtual void OnExit(); + virtual void OnExit() wxOVERRIDE; private: size_t m_n; // number of characters to write @@ -130,7 +130,7 @@ public: Create(); } - virtual ExitCode Entry() + virtual ExitCode Entry() wxOVERRIDE { //wxPrintf(wxT("Thread %lu has started running.\n"), GetId()); gs_cond.Post(); @@ -165,7 +165,7 @@ public: Create(); } - virtual ExitCode Entry() + virtual ExitCode Entry() wxOVERRIDE { wxUnusedVar(m_i); diff --git a/tests/thread/queue.cpp b/tests/thread/queue.cpp index 9188265d13..a1121d1a9e 100644 --- a/tests/thread/queue.cpp +++ b/tests/thread/queue.cpp @@ -55,7 +55,7 @@ private: {} // thread execution starts here - virtual void *Entry(); + virtual void *Entry() wxOVERRIDE; // Thread message queue Queue& GetQueue() diff --git a/tests/thread/tls.cpp b/tests/thread/tls.cpp index ab92177f33..4319f2b11e 100644 --- a/tests/thread/tls.cpp +++ b/tests/thread/tls.cpp @@ -56,7 +56,7 @@ public: // ctor both creates and starts the thread TLSTestThread() : wxThread(wxTHREAD_JOINABLE) { Create(); Run(); } - virtual void *Entry() + virtual void *Entry() wxOVERRIDE { gs_threadInt = 17; diff --git a/tests/weakref/evtconnection.cpp b/tests/weakref/evtconnection.cpp index 3d1a856c58..82073ee57d 100644 --- a/tests/weakref/evtconnection.cpp +++ b/tests/weakref/evtconnection.cpp @@ -37,7 +37,7 @@ class wxTestEvent : public wxEvent { public: wxTestEvent(wxEventType type = wxEVT_TEST) : wxEvent(0, type) { } - virtual wxEvent *Clone() const { return new wxTestEvent(GetEventType()); } + virtual wxEvent *Clone() const wxOVERRIDE { return new wxTestEvent(GetEventType()); } }; class wxTestSink : public wxEvtHandler diff --git a/tests/window/setsize.cpp b/tests/window/setsize.cpp index fe10aea399..d99200ac52 100644 --- a/tests/window/setsize.cpp +++ b/tests/window/setsize.cpp @@ -56,7 +56,7 @@ private: } protected: - virtual wxSize DoGetBestSize() const { return wxSize(50, 250); } + virtual wxSize DoGetBestSize() const wxOVERRIDE { return wxSize(50, 250); } }; wxWindow *m_win;