Replace wxOVERRIDE and wxNOEXCEPT with override and noexcept

Don't use deprecated macros in wxWidgets itself.
This commit is contained in:
PB 2022-10-12 17:07:48 +02:00 committed by Vadim Zeitlin
parent be5095acdd
commit 88d526660f
1282 changed files with 11878 additions and 11878 deletions

View file

@ -68,11 +68,11 @@ public:
protected:
// override this method to return data to be shown in the listbox (this is
// mandatory)
virtual wxString OnGetItem(size_t n) const wxOVERRIDE;
virtual wxString OnGetItem(size_t n) const override;
// change the appearance by overriding these functions (this is optional)
virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const wxOVERRIDE;
virtual wxColour GetSelectedTextColour(const wxColour& colFg) const wxOVERRIDE;
virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const override;
virtual wxColour GetSelectedTextColour(const wxColour& colFg) const override;
// flag telling us whether we should use fg colour even for the selected
// item
@ -149,7 +149,7 @@ private:
class MyApp : public wxApp
{
public:
virtual bool OnInit() wxOVERRIDE { (new MyFrame())->Show(); return true; }
virtual bool OnInit() override { (new MyFrame())->Show(); return true; }
};
// ----------------------------------------------------------------------------