]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: make the get_data() of buffer_raw interface final.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 11 Sep 2018 11:37:11 +0000 (13:37 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 17 Sep 2018 13:34:33 +0000 (15:34 +0200)
This is just to ensure the just dropped buffer::raw_pipe
was the solely user of this facility. After successful
validation, we can drop `virtual` on the method entirely.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/include/buffer_raw.h

index 9193439f4f3757b195de0a96d96ab7b087adb3ca..262b4a139f60da888cea6ccacad03a034f49555f 100644 (file)
@@ -77,7 +77,7 @@ private:
     raw(const raw &other) = delete;
     const raw& operator=(const raw &other) = delete;
 public:
-    virtual char *get_data() {
+    virtual char *get_data() final {
       return data;
     }
     virtual raw* clone_empty() = 0;