From: Uwe Hermann Date: Wed, 9 Jan 2019 20:39:19 +0000 (+0100) Subject: libsigrokflow.hpp: Use the 'override' keyword where possible. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8ddc0b74396bcd1e30359d3e43bf78bb6ec03981;p=libsigrokflow.git libsigrokflow.hpp: Use the 'override' keyword where possible. --- diff --git a/include/libsigrokflow/libsigrokflow.hpp b/include/libsigrokflow/libsigrokflow.hpp index c51f963..e084e35 100644 --- a/include/libsigrokflow/libsigrokflow.hpp +++ b/include/libsigrokflow/libsigrokflow.hpp @@ -85,7 +85,7 @@ public: shared_ptr libsigrok_device(); /* Override state change. */ - Gst::StateChangeReturn change_state_vfunc(Gst::StateChange transition); + Gst::StateChangeReturn change_state_vfunc(Gst::StateChange transition) override; /* Gst class init. */ static void class_init(Gst::ElementClass *klass); @@ -117,14 +117,14 @@ public: shared_ptr format, map options = map()); - /* Override start. */ + /* Start function (not an override). */ bool start_vfunc(); - /* Chain function. */ + /* Chain function (not an override). */ Gst::FlowReturn chain(const Glib::RefPtr &pad, const Glib::RefPtr &buf); - /* Override stop. */ + /* Stop function (not an override). */ bool stop_vfunc(); /* Gst class init. */ @@ -159,13 +159,13 @@ public: map options = map()); /* Override start. */ - bool start_vfunc(); + bool start_vfunc() override; /* Override render. */ - Gst::FlowReturn render_vfunc(const Glib::RefPtr &buffer); + Gst::FlowReturn render_vfunc(const Glib::RefPtr &buffer) override; /* Override stop. */ - bool stop_vfunc(); + bool stop_vfunc() override; /* Gst class init. */ static void class_init(Gst::ElementClass *klass); @@ -196,13 +196,13 @@ public: struct srd_session *libsigrokdecode_session(); /* Override start. */ - bool start_vfunc(); + bool start_vfunc() override; /* Override render. */ - Gst::FlowReturn render_vfunc(const Glib::RefPtr &buffer); + Gst::FlowReturn render_vfunc(const Glib::RefPtr &buffer) override; /* Override stop. */ - bool stop_vfunc(); + bool stop_vfunc() override; /* Gst class init. */ static void class_init(Gst::ElementClass *klass);