[goocanvasmm] C++11: Use of the override keyword.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvasmm] C++11: Use of the override keyword.
- Date: Tue, 27 Oct 2015 09:55:44 +0000 (UTC)
commit d3b8ad8f26ad19167f764e252a830c426db73749
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 27 10:51:48 2015 +0100
C++11: Use of the override keyword.
examples/custom_item/exampleitem.h | 4 ++--
examples/demo/primitives.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/examples/custom_item/exampleitem.h b/examples/custom_item/exampleitem.h
index 12d9d01..badfc70 100644
--- a/examples/custom_item/exampleitem.h
+++ b/examples/custom_item/exampleitem.h
@@ -29,8 +29,8 @@ public:
static Glib::RefPtr<ExampleItem> create(double x = 0, double y = 0, double width = 0, double height = 0);
protected:
- void simple_update_vfunc(const Cairo::RefPtr<Cairo::Context>& cr);
- void simple_paint_vfunc(const Cairo::RefPtr<Cairo::Context>& cr, const Goocanvas::Bounds& bounds);
+ void simple_update_vfunc(const Cairo::RefPtr<Cairo::Context>& cr) override;
+ void simple_paint_vfunc(const Cairo::RefPtr<Cairo::Context>& cr, const Goocanvas::Bounds& bounds) override;
double m_x, m_y;
double m_width, m_height;
diff --git a/examples/demo/primitives.h b/examples/demo/primitives.h
index 119ca4d..bc7ff8c 100644
--- a/examples/demo/primitives.h
+++ b/examples/demo/primitives.h
@@ -31,11 +31,11 @@ class Primitives : public Page
public:
Primitives();
- virtual const Glib::ustring&
- getName();
+ const Glib::ustring&
+ getName() override;
- virtual Gtk::Widget*
- getWidget();
+ Gtk::Widget*
+ getWidget() override;
private:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]