summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 14:27:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 14:27:01 +0100
commitbac165a751b41cfe066420aa54f5fca6a718b9ef (patch)
tree276ce8a8cb04df515463d009ad887347021c661b /timers.h
parent3d488bcf1c44ba431d70e79f161086ed7b740d8b (diff)
downloadvdr-bac165a751b41cfe066420aa54f5fca6a718b9ef.tar.gz
vdr-bac165a751b41cfe066420aa54f5fca6a718b9ef.tar.bz2
Added a 'const' version of cTimers::GetTimer()
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/timers.h b/timers.h
index 4222c104..624347c6 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.3 2015/09/09 10:40:24 kls Exp $
+ * $Id: timers.h 4.4 2016/12/22 14:23:50 kls Exp $
*/
#ifndef __TIMERS_H
@@ -170,7 +170,8 @@ public:
static int NewTimerId(void);
const cTimer *GetById(int Id) const;
cTimer *GetById(int Id) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetById(Id)); };
- cTimer *GetTimer(cTimer *Timer);
+ const cTimer *GetTimer(const cTimer *Timer) const;
+ cTimer *GetTimer(const cTimer *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;