summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-23 09:49:31 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-23 09:49:31 +0100
commit736f2fed426b3b3ca68a5ce808586ab16e5bb070 (patch)
tree02ad2d39b67b96b96916ef7930bcfa480adecb54 /timers.h
parentfdbbbd146a675ae3915fefa403fd20dafca9b2a2 (diff)
downloadvdr-736f2fed426b3b3ca68a5ce808586ab16e5bb070.tar.gz
vdr-736f2fed426b3b3ca68a5ce808586ab16e5bb070.tar.bz2
Fixed the non-const version of cTimers::GetTimer()
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.h b/timers.h
index d87b57ad..7ee116c8 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 4.5 2016/12/22 14:30:33 kls Exp $
+ * $Id: timers.h 4.6 2016/12/23 09:49:31 kls Exp $
*/
#ifndef __TIMERS_H
@@ -171,7 +171,7 @@ public:
const cTimer *GetById(int Id) const;
cTimer *GetById(int Id) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetById(Id)); };
const cTimer *GetTimer(const cTimer *Timer) const;
- cTimer *GetTimer(const cTimer *Timer);
+ cTimer *GetTimer(const cTimer *Timer) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetTimer(Timer)); };
const cTimer *GetMatch(time_t t) const;
cTimer *GetMatch(time_t t) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(t)); };
const cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) const;