From 635d84db169972a2a744a6b1f4ec705c8d53fa3c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 10 Jan 2020 15:03:07 +0100 Subject: [PATCH] cc_timer: declare some members as protected required for use in derived classes --- src/gui/components/cc_timer.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gui/components/cc_timer.h b/src/gui/components/cc_timer.h index ec7016313..3a9ece788 100644 --- a/src/gui/components/cc_timer.h +++ b/src/gui/components/cc_timer.h @@ -51,19 +51,20 @@ class CComponentsTimer : public sigc::trackable ///refresh interval in seconds int64_t tm_interval; - ///init function to start/stop timer in own thread - void initThread(); - void stopThread(); - ///runs shared timer action provided inside OnTimer() signal static void threadCallback(CComponentsTimer *tm); sigc::slot sl_cleanup_timer; - ///name for the thread - std::string tm_thread_name; std::string tn; + protected: ///name for thread + std::string tm_thread_name; + + ///init function to start/stop timer in own thread + void initThread(); + void stopThread(); + public: /**Constructor for timer class *