X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab7ce33c563651f790f99d64ee56727706047ae3..adb8a71bbc0ba11aad0b417db24f7267a250b6c3:/contrib/samples/ogl/studio/shapes.h?ds=inline diff --git a/contrib/samples/ogl/studio/shapes.h b/contrib/samples/ogl/studio/shapes.h index 6a440cf590..26ca01fbe7 100644 --- a/contrib/samples/ogl/studio/shapes.h +++ b/contrib/samples/ogl/studio/shapes.h @@ -18,7 +18,8 @@ #include #include -#include +#include +#include #include #include @@ -72,8 +73,8 @@ public: // Overridables // Start/end copying - virtual bool OnStartCopy(wxDiagram* diagramTo) { return TRUE; }; - virtual bool OnEndCopy(wxDiagram* diagramTo) { return TRUE; }; + virtual bool OnStartCopy(wxDiagram* WXUNUSED(diagramTo)) { return TRUE; }; + virtual bool OnEndCopy(wxDiagram* WXUNUSED(diagramTo)) { return TRUE; }; // Override this to e.g. have the shape added through a Do/Undo command system. // By default, we'll just add it directly to the destination diagram, and @@ -96,10 +97,10 @@ public: ~csDiagramClipboard() {} // Start/end copying - bool OnStartCopy(wxDiagram* diagramTo); - bool OnEndCopy(wxDiagram* diagramTo); + virtual bool OnStartCopy(wxDiagram* diagramTo); + virtual bool OnEndCopy(wxDiagram* diagramTo); - bool OnAddShape(wxDiagram* diagramTo, wxShape* newShape, wxDC* dc); + virtual bool OnAddShape(wxDiagram* diagramTo, wxShape* newShape, wxDC* dc); protected: csDiagramCommand* m_currentCmd; @@ -225,7 +226,7 @@ class csEvtHandler: public wxShapeEvtHandler { DECLARE_DYNAMIC_CLASS(csEvtHandler) public: - csEvtHandler(wxShapeEvtHandler *prev = NULL, wxShape *shape = NULL, const wxString& lab = ""); + csEvtHandler(wxShapeEvtHandler *prev = NULL, wxShape *shape = NULL, const wxString& lab = wxEmptyString); ~csEvtHandler(); void OnLeftClick(double x, double y, int keys = 0, int attachment = 0);