From a9cfa782e729cd2a2846190f40110896cad11bf3 Mon Sep 17 00:00:00 2001 From: Doralitze <doralitze@chaotikum.org> Date: Sat, 9 Mar 2019 20:31:13 +0100 Subject: [PATCH] fix: indirect adddressing resulting in warning --- src/ui/progress_indicator.hpp | 5 +++-- src/ui/view.hpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/progress_indicator.hpp b/src/ui/progress_indicator.hpp index a1ee642..4827fb9 100644 --- a/src/ui/progress_indicator.hpp +++ b/src/ui/progress_indicator.hpp @@ -10,6 +10,7 @@ namespace rmrf::ui { */ class progress_indicator { public: + virtual ~progress_indicator(); /** * Query the progress state * @return The current progress in percent @@ -29,12 +30,12 @@ public: * This method shall be used in order to obtain the * description of the total operation. */ - virtual shared_ptr<string> get_operation_description(); + virtual std::shared_ptr<std::string> get_operation_description(); /** * This method shall be used in order to retrieve a * description of the current step. */ - virtual shared_ptr<string> get_current_job_description(); + virtual std::shared_ptr<std::string> get_current_job_description(); }; } diff --git a/src/ui/view.hpp b/src/ui/view.hpp index 2008943..e0d1911 100644 --- a/src/ui/view.hpp +++ b/src/ui/view.hpp @@ -43,6 +43,7 @@ public: class view { public: virtual void set_progress_indicator(std::shared_ptr<progress_indicator>); + virtual ~view(); }; } -- GitLab