Fix miscellaneous build warnings
See https://github.com/wxWidgets/wxWidgets/pull/755
This commit is contained in:
@@ -1893,7 +1893,7 @@ public:
|
||||
bool IsGestureEnd() const { return m_isEnd; }
|
||||
void SetGestureEnd(bool isEnd = true) { m_isEnd = isEnd; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGestureEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGestureEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxPoint m_pos;
|
||||
@@ -1926,7 +1926,7 @@ public:
|
||||
wxPoint GetDelta() const { return m_delta; }
|
||||
void SetDelta(const wxPoint& delta) { m_delta = delta; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxPanGestureEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxPanGestureEvent(*this); }
|
||||
|
||||
private:
|
||||
wxPoint m_delta;
|
||||
@@ -1955,7 +1955,7 @@ public:
|
||||
double GetZoomFactor() const { return m_zoomFactor; }
|
||||
void SetZoomFactor(double zoomFactor) { m_zoomFactor = zoomFactor; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxZoomGestureEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxZoomGestureEvent(*this); }
|
||||
|
||||
private:
|
||||
double m_zoomFactor;
|
||||
@@ -1984,7 +1984,7 @@ public:
|
||||
double GetRotationAngle() const { return m_rotationAngle; }
|
||||
void SetRotationAngle(double rotationAngle) { m_rotationAngle = rotationAngle; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxRotateGestureEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxRotateGestureEvent(*this); }
|
||||
|
||||
private:
|
||||
double m_rotationAngle;
|
||||
@@ -2008,7 +2008,7 @@ public:
|
||||
wxTwoFingerTapEvent(const wxTwoFingerTapEvent& event) : wxGestureEvent(event)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxTwoFingerTapEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxTwoFingerTapEvent(*this); }
|
||||
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxTwoFingerTapEvent);
|
||||
@@ -2030,7 +2030,7 @@ public:
|
||||
wxLongPressEvent(const wxLongPressEvent& event) : wxGestureEvent(event)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxLongPressEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxLongPressEvent(*this); }
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxLongPressEvent);
|
||||
};
|
||||
@@ -2051,7 +2051,7 @@ public:
|
||||
wxPressAndTapEvent(const wxPressAndTapEvent& event) : wxGestureEvent(event)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxPressAndTapEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxPressAndTapEvent(*this); }
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxPressAndTapEvent);
|
||||
};
|
||||
|
@@ -746,9 +746,9 @@ public: \
|
||||
const wxArrayString& value = wxArrayString() ); \
|
||||
~PROPNAME(); \
|
||||
virtual bool OnEvent( wxPropertyGrid* propgrid, \
|
||||
wxWindow* primary, wxEvent& event ); \
|
||||
virtual bool OnCustomStringEdit( wxWindow* parent, wxString& value ); \
|
||||
virtual wxValidator* DoGetValidator() const; \
|
||||
wxWindow* primary, wxEvent& event ) wxOVERRIDE; \
|
||||
virtual bool OnCustomStringEdit( wxWindow* parent, wxString& value ) wxOVERRIDE; \
|
||||
virtual wxValidator* DoGetValidator() const wxOVERRIDE; \
|
||||
};
|
||||
|
||||
#define WX_PG_DECLARE_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAM) \
|
||||
|
@@ -159,14 +159,14 @@ public:
|
||||
wxIPV6address(const wxIPV6address& other) : wxIPaddress(other) { }
|
||||
|
||||
// implement wxSockAddress pure virtuals:
|
||||
virtual Family Type() { return IPV6; }
|
||||
virtual wxSockAddress *Clone() const { return new wxIPV6address(*this); }
|
||||
virtual Family Type() wxOVERRIDE { return IPV6; }
|
||||
virtual wxSockAddress *Clone() const wxOVERRIDE { return new wxIPV6address(*this); }
|
||||
|
||||
|
||||
// implement wxIPaddress pure virtuals:
|
||||
virtual bool IsLocalHost() const;
|
||||
virtual bool IsLocalHost() const wxOVERRIDE;
|
||||
|
||||
virtual wxString IPAddress() const;
|
||||
virtual wxString IPAddress() const wxOVERRIDE;
|
||||
|
||||
// IPv6-specific methods:
|
||||
bool Hostname(unsigned char addr[16]);
|
||||
@@ -174,7 +174,7 @@ public:
|
||||
using wxIPaddress::Hostname;
|
||||
|
||||
private:
|
||||
virtual void DoInitImpl();
|
||||
virtual void DoInitImpl() wxOVERRIDE;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxIPV6address);
|
||||
};
|
||||
|
@@ -2079,35 +2079,35 @@ public:
|
||||
|
||||
// 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 name of the specified object.
|
||||
virtual wxAccStatus GetName(int childId, wxString* name);
|
||||
virtual wxAccStatus GetName(int childId, wxString* name) 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
|
||||
@@ -2115,36 +2115,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;
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
// Gets a variant representing the selected children
|
||||
@@ -2155,7 +2155,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;
|
||||
#endif // wxUSE_VARIANT
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user