]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/WeightedPriorityQueue: add override to func 9353/head
authorMichal Jarzabek <stiopa@gmail.com>
Wed, 25 May 2016 21:12:49 +0000 (22:12 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Wed, 25 May 2016 21:12:49 +0000 (22:12 +0100)
Add override to virtual functions.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/common/WeightedPriorityQueue.h

index 39d5eb79b672c13278d10534b229283e69efc551..a94ff2d30948ce2aa7cc94f08166c985df85ee29 100644 (file)
@@ -357,14 +357,14 @@ class WeightedPriorityQueue :  public OpQueue <T, K>
     void enqueue_front(K cl, unsigned p, unsigned cost, T item) override final {
       normal.insert(p, cl, cost, item, true);
     }
-    T dequeue() {
+    T dequeue() override {
       assert(strict.size + normal.size > 0);
       if (!strict.empty()) {
        return strict.pop(true);
       }
       return normal.pop();
     }
-    void dump(ceph::Formatter *f) const {
+    void dump(ceph::Formatter *f) const override {
       f->open_array_section("high_queues");
       strict.dump(f);
       f->close_section();