From: Arnaud Giersch Date: Thu, 5 Dec 2019 20:22:44 +0000 (+0100) Subject: Qualifier "virtual" is redundant with "override". X-Git-Tag: v3.25~334^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d810f007424f198fb087f9fc5ae17f70159ac928 Qualifier "virtual" is redundant with "override". --- diff --git a/include/simgrid/s4u/Exec.hpp b/include/simgrid/s4u/Exec.hpp index 3611c5489d..5a65e18a26 100644 --- a/include/simgrid/s4u/Exec.hpp +++ b/include/simgrid/s4u/Exec.hpp @@ -39,9 +39,9 @@ public: static xbt::signal on_start; static xbt::signal on_completion; - virtual Exec* start() override = 0; - virtual double get_remaining_ratio() = 0; - virtual ExecPtr set_host(Host* host) = 0; + Exec* start() override = 0; + virtual double get_remaining_ratio() = 0; + virtual ExecPtr set_host(Host* host) = 0; Exec* wait() override; Exec* wait_for(double timeout) override; diff --git a/src/plugins/host_dvfs.cpp b/src/plugins/host_dvfs.cpp index 2466f28eb0..f714b0f787 100644 --- a/src/plugins/host_dvfs.cpp +++ b/src/plugins/host_dvfs.cpp @@ -232,9 +232,9 @@ class Conservative : public Governor { public: explicit Conservative(simgrid::s4u::Host* ptr) : Governor(ptr) {} - virtual std::string get_name() const override { return "Conservative"; } + std::string get_name() const override { return "Conservative"; } - virtual void update() override + void update() override { double load = get_host()->get_core_count() * sg_host_get_avg_load(get_host()); int pstate = get_host()->get_pstate(); @@ -314,7 +314,7 @@ public: }); } - virtual std::string get_name() const override { return "Adagio"; } + std::string get_name() const override { return "Adagio"; } void pre_task() { @@ -355,7 +355,7 @@ public: task_id++; } - virtual void update() override {} + void update() override {} }; #endif } // namespace dvfs