summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-06-18 12:49:19 (GMT)
committerJasmin Jessich <jasmin@anw.at>2017-06-18 12:49:19 (GMT)
commit8c58d6feb3e8134db23c82db2eba16f958658ceb (patch)
treebf7c272a6acacf4b1ad8a40f2d990e5e26c6bc8b
parent914fc339749a5d625bc0aa6367cb1c950df7702b (diff)
downloadvdr-plugin-live-8c58d6feb3e8134db23c82db2eba16f958658ceb.tar.gz
vdr-plugin-live-8c58d6feb3e8134db23c82db2eba16f958658ceb.tar.bz2
Fixed compilation with VDR 2.2.0
-rw-r--r--timers.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/timers.cpp b/timers.cpp
index d280a27..98e4ad8 100644
--- a/timers.cpp
+++ b/timers.cpp
@@ -291,7 +291,7 @@ namespace vdrlive {
Timers->SetExplicitModify();
const cTimer *checkTimer = Timers->GetTimer( newTimer.get() );
#else
- cTimer* checkTimer = Timers.GetTimer( newTimer.get() );
+ const cTimer* checkTimer = Timers.GetTimer( newTimer.get() );
#endif
if ( checkTimer ) {
StoreError( timerData, tr("Timer already defined") );
@@ -321,9 +321,9 @@ namespace vdrlive {
#if VDRVERSNUM >= 20301
LOCK_TIMERS_WRITE;
Timers->SetExplicitModify();
- cTimer* oldTimer = (cTimer *)Timers->GetTimer( timerData.first );
+ cTimer* oldTimer = Timers->GetTimer( timerData.first );
#else
- cTimer* oldTimer = Timers.GetTimer( timerData.first );
+ cTimer* oldTimer = Timers.GetTimer( const_cast<cTimer*>(timerData.first) );
#endif
if ( oldTimer == 0 ) {
StoreError( timerData, tr("Timer not defined") );
@@ -357,9 +357,9 @@ namespace vdrlive {
#if VDRVERSNUM >= 20301
LOCK_TIMERS_WRITE;
Timers->SetExplicitModify();
- cTimer* oldTimer = (cTimer *)Timers->GetTimer( timerData.first );
+ cTimer* oldTimer = Timers->GetTimer( timerData.first );
#else
- cTimer* oldTimer = Timers.GetTimer( timerData.first );
+ cTimer* oldTimer = Timers.GetTimer( const_cast<cTimer*>(timerData.first) );
#endif
if ( oldTimer == 0 ) {
StoreError( timerData, tr("Timer not defined") );
@@ -397,9 +397,9 @@ namespace vdrlive {
#if VDRVERSNUM >= 20301
LOCK_TIMERS_WRITE;
Timers->SetExplicitModify();
- cTimer* toggleTimer = (cTimer *)Timers->GetTimer( timerData.first );
+ cTimer* toggleTimer = Timers->GetTimer( timerData.first );
#else
- cTimer* toggleTimer = Timers.GetTimer( timerData.first );
+ cTimer* toggleTimer = Timers.GetTimer( const_cast<cTimer*>(timerData.first) );
#endif
if ( toggleTimer == 0 ) {
StoreError( timerData, tr("Timer not defined") );