From daa043dc2dcca8c43c58af84c866e34e40f00d24 Mon Sep 17 00:00:00 2001 From: kfb77 Date: Sun, 9 Aug 2020 19:01:36 +0200 Subject: [PATCH] declare same variables with const --- epgsearch.cpp | 2 +- timers.cpp | 2 +- timers.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/epgsearch.cpp b/epgsearch.cpp index 48e7fbf8..d04f442b 100644 --- a/epgsearch.cpp +++ b/epgsearch.cpp @@ -26,7 +26,7 @@ bool operator<( SearchTimer const& left, SearchTimer const& right ) bool CheckEpgsearchVersion() { /* @winni: Falls Du an der Versionsnummer Anpassungen vornehmen willst, mach das bitte in livefeatures.h ganz unten. Danke */ - Features< features::epgsearch >& f = LiveFeatures< features::epgsearch >(); + const Features< features::epgsearch >& f = LiveFeatures< features::epgsearch >(); if ( f.Loaded() ) { if ( !f.Recent() ) throw HtmlError( tr("Required minimum version of epgsearch: ") + string( f.MinVersion() )); diff --git a/timers.cpp b/timers.cpp index 464eba6e..ef6cf85b 100644 --- a/timers.cpp +++ b/timers.cpp @@ -188,7 +188,7 @@ namespace vdrlive { { } - void TimerManager::UpdateTimer( int timerId, const char* remote, const char* oldRemote, int flags, tChannelID& channel, string const& weekdays, + void TimerManager::UpdateTimer( int timerId, const char* remote, const char* oldRemote, int flags, const tChannelID& channel, string const& weekdays, string const& day, int start, int stop, int priority, int lifetime, string const& title, string const& aux ) { cMutexLock lock( this ); diff --git a/timers.h b/timers.h index 1fc42454..2fb0a46e 100644 --- a/timers.h +++ b/timers.h @@ -53,7 +53,7 @@ namespace vdrlive { public: SortedTimers& GetTimers() { return m_timers; } - void UpdateTimer( int timerId, const char* remote, const char* oldRemote, int flags, tChannelID& channel, std::string const& weekdays, + void UpdateTimer( int timerId, const char* remote, const char* oldRemote, int flags, const tChannelID& channel, std::string const& weekdays, std::string const& day, int start, int stop, int priority, int lifetime, std::string const& title, std::string const& aux ); void DelTimer( int timerId, const char* remote);