1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
From 3a04a456397926c16588bbedfd3fbbf819a42948 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Fri, 22 Mar 2019 10:36:59 -0400
Subject: [PATCH] Fix inconsistent function declarations in documentation
Mostly remove the virtual keyword where the actual implementation isn't
virtual.
(Backport of ac18cfe7cc1c7c6f8e545ccdcb1a947392c3f320 plus some additional
fixes that were already in master.)
---
interface/wx/dataview.h | 6 +++---
interface/wx/grid.h | 2 +-
interface/wx/html/winpars.h | 2 +-
interface/wx/image.h | 2 +-
interface/wx/intl.h | 10 +++++-----
interface/wx/print.h | 2 +-
interface/wx/propgrid/propgridiface.h | 2 +-
7 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/ext/wxWidgets/interface/wx/dataview.h b/ext/wxWidgets/interface/wx/dataview.h
index 81bcd5adfde..658986a706c 100644
--- a/ext/wxWidgets/interface/wx/dataview.h
+++ b/ext/wxWidgets/interface/wx/dataview.h
@@ -132,7 +132,7 @@ class wxDataViewModel : public wxRefCounter
Called to inform the model that all data has been cleared.
The control will reread the data from the model again.
*/
- virtual bool Cleared();
+ bool Cleared();
/**
The compare function to be used by control. The default compare function
@@ -336,8 +336,8 @@ class wxDataViewModel : public wxRefCounter
This will eventually emit a @c wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
event to the user.
*/
- virtual bool ValueChanged(const wxDataViewItem& item,
- unsigned int col);
+ bool ValueChanged(const wxDataViewItem& item,
+ unsigned int col);
virtual bool IsListModel() const;
diff --git a/ext/wxWidgets/interface/wx/grid.h b/ext/wxWidgets/interface/wx/grid.h
index ff2cb695ec4..35554268d5c 100644
--- a/ext/wxWidgets/interface/wx/grid.h
+++ b/ext/wxWidgets/interface/wx/grid.h
@@ -446,7 +446,7 @@ class wxGridCellEditor : public wxClientDataContainer, public wxRefCounter
Draws the part of the cell not occupied by the control: the base class
version just fills it with background colour from the attribute.
*/
- virtual void PaintBackground(wxDC& dc, const wxRect& rectCell, wxGridCellAttr& attr);
+ virtual void PaintBackground(wxDC& dc, const wxRect& rectCell, const wxGridCellAttr& attr);
/**
Reset the value in the control back to its starting value.
diff --git a/ext/wxWidgets/interface/wx/html/winpars.h b/ext/wxWidgets/interface/wx/html/winpars.h
index 6e7d0158fa9..5e629c955f0 100644
--- a/ext/wxWidgets/interface/wx/html/winpars.h
+++ b/ext/wxWidgets/interface/wx/html/winpars.h
@@ -59,7 +59,7 @@ class wxHtmlWinTagHandler : public wxHtmlTagHandler
Assigns @a parser to this handler. Each @b instance of handler
is guaranteed to be called only from the one parser.
*/
- virtual void SetParser(wxHtmlWinParser* parser);
+ virtual void SetParser(wxHtmlParser* parser);
protected:
/**
diff --git a/ext/wxWidgets/interface/wx/image.h b/ext/wxWidgets/interface/wx/image.h
index e3735d4d3cb..242800be0b6 100644
--- a/ext/wxWidgets/interface/wx/image.h
+++ b/ext/wxWidgets/interface/wx/image.h
@@ -224,7 +224,7 @@ class wxImageHandler : public wxObject
for which this function returns the number of frames in the
animation).
*/
- virtual int GetImageCount(wxInputStream& stream);
+ int GetImageCount(wxInputStream& stream);
/**
Gets the MIME type associated with this handler.
diff --git a/ext/wxWidgets/interface/wx/intl.h b/ext/wxWidgets/interface/wx/intl.h
index 357fa93a71b..fa443d9d042 100644
--- a/ext/wxWidgets/interface/wx/intl.h
+++ b/ext/wxWidgets/interface/wx/intl.h
@@ -362,15 +362,15 @@ class wxLocale
/**
Calls wxGetTranslation(const wxString&, const wxString&).
*/
- virtual const wxString& GetString(const wxString& origString,
- const wxString& domain = wxEmptyString) const;
+ const wxString& GetString(const wxString& origString,
+ const wxString& domain = wxEmptyString) const;
/**
Calls wxGetTranslation(const wxString&, const wxString&, unsigned, const wxString&).
*/
- virtual const wxString& GetString(const wxString& origString,
- const wxString& origString2, unsigned n,
- const wxString& domain = wxEmptyString) const;
+ const wxString& GetString(const wxString& origString,
+ const wxString& origString2, unsigned n,
+ const wxString& domain = wxEmptyString) const;
/**
Returns current platform-specific locale name as passed to setlocale().
diff --git a/ext/wxWidgets/interface/wx/print.h b/ext/wxWidgets/interface/wx/print.h
index 1a16f1d08e3..ebd5ba18d0e 100644
--- a/ext/wxWidgets/interface/wx/print.h
+++ b/ext/wxWidgets/interface/wx/print.h
@@ -262,7 +262,7 @@ class wxPreviewFrame : public wxFrame
@since 2.9.2
*/
- virtual void InitializeWithModality(wxPreviewFrameModalityKind kind);
+ void InitializeWithModality(wxPreviewFrameModalityKind kind);
/**
Enables any disabled frames in the application, and deletes the print preview
diff --git a/ext/wxWidgets/interface/wx/propgrid/propgridiface.h b/ext/wxWidgets/interface/wx/propgrid/propgridiface.h
index 7f30c0038e3..2186f8df999 100644
--- a/ext/wxWidgets/interface/wx/propgrid/propgridiface.h
+++ b/ext/wxWidgets/interface/wx/propgrid/propgridiface.h
@@ -596,7 +596,7 @@ class wxPropertyGridInterface
/**
Returns true if property is selected.
*/
- virtual bool IsPropertySelected( wxPGPropArg id ) const;
+ bool IsPropertySelected( wxPGPropArg id ) const;
/**
Returns @true if property is shown (ie. HideProperty() with @true not
|