From 2a7467aed5a0b96e64bc5e7493c96d89583d3a6d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 26 Oct 2003 13:32:24 +0100 Subject: Added missing 'const' to some cChannel member functions --- CONTRIBUTORS | 1 + HISTORY | 2 ++ channels.h | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 7f1c548a..1b183a96 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -647,6 +647,7 @@ Torsten Herz to switch to an other channel for reporting a wrong EPG bugfix code number for the MAX_USEFUL_SUBTITLE_LENGTH fix for fixing a bug in resetting OSD color palettes + for adding missing 'const' to some cChannel member functions Steffen Becker for reporting a problem with CPU load peaks (in the EPG scanner) diff --git a/HISTORY b/HISTORY index f021d700..cb0262c3 100644 --- a/HISTORY +++ b/HISTORY @@ -2449,6 +2449,8 @@ Video Disk Recorder Revision History - Fixed handling CAM menus in case the CAM connection fails while the menu is being presented (thanks to Thomas v. Keller for reportign this one). +- Added missing 'const' to some cChannel member functions (thanks to Torsten + Herz). 2003-10-24: Version 1.3.0 diff --git a/channels.h b/channels.h index ca76af16..6fa1758c 100644 --- a/channels.h +++ b/channels.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.h 1.8 2003/08/16 09:12:15 kls Exp $ + * $Id: channels.h 1.9 2003/10/26 13:32:00 kls Exp $ */ #ifndef __CHANNELS_H @@ -119,9 +119,9 @@ public: int Transmission(void) const { return transmission; } int Guard(void) const { return guard; } int Hierarchy(void) const { return hierarchy; } - bool IsCable(void) { return (source & cSource::st_Mask) == cSource::stCable; } - bool IsSat(void) { return (source & cSource::st_Mask) == cSource::stSat; } - bool IsTerr(void) { return (source & cSource::st_Mask) == cSource::stTerr; } + bool IsCable(void) const { return (source & cSource::st_Mask) == cSource::stCable; } + bool IsSat(void) const { return (source & cSource::st_Mask) == cSource::stSat; } + bool IsTerr(void) const { return (source & cSource::st_Mask) == cSource::stTerr; } tChannelID GetChannelID(void) const; }; -- cgit v1.2.3