From bb479fd0def20ceee01b6f65b69de24bf18028fe Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 9 Oct 2023 20:06:34 +0200 Subject: src/indicator.h: Fix multiple definitions of header property --- src/indicator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/indicator.h b/src/indicator.h index 7379b32..c9ccb1e 100644 --- a/src/indicator.h +++ b/src/indicator.h @@ -1,5 +1,6 @@ /* * Copyright 2014-2016 Canonical Ltd. + * Copyright 2023 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr + * Robert Tari */ #pragma once @@ -50,7 +52,7 @@ class Profile { public: virtual std::string name() const =0; - virtual const core::Property
& header() const =0; + virtual core::Property
& header() =0; virtual std::shared_ptr menu_model() const =0; virtual ~Profile(); @@ -66,8 +68,7 @@ public: virtual ~SimpleProfile(); std::string name() const override {return m_name;} - core::Property
& header() {return m_header;} - const core::Property
& header() const override {return m_header;} + core::Property
& header() override {return m_header;} std::shared_ptr menu_model() const override {return m_menu;} protected: @@ -86,4 +87,3 @@ public: virtual GSimpleActionGroup* action_group() const =0; virtual std::vector> profiles() const =0; }; - -- cgit v1.2.3