From a9ff787071733e6c5d8a18ff5928bbd4f547f2c2 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 11 Sep 2018 13:37:11 +0200 Subject: [PATCH] common: make the get_data() of buffer_raw interface final. 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 --- src/include/buffer_raw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h index 9193439f4f375..262b4a139f60d 100644 --- a/src/include/buffer_raw.h +++ b/src/include/buffer_raw.h @@ -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; -- 2.39.5