From 1d574d93bc5207d0e500dffe1ebad5e586124c4f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 16 Dec 2014 20:57:30 +0100 Subject: [PATCH] CComponentsTimer: simplify isRun function --- src/gui/components/cc_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_timer.h b/src/gui/components/cc_timer.h index 62992c5aa..5be4b252b 100644 --- a/src/gui/components/cc_timer.h +++ b/src/gui/components/cc_timer.h @@ -64,7 +64,7 @@ class CComponentsTimer : public sigc::trackable bool stopTimer(); ///returns true, if timer is running in thread - bool isRun() const {return tm_thread == 0 ? false:true;}; + bool isRun() const {return tm_thread;}; ///set another interval in seconds void setTimerIntervall(const int& seconds){tm_interval = seconds;};