diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 11:25:36 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 11:25:36 +0200 |
commit | 373c69043ae352778974735460753d5e4f500789 (patch) | |
tree | 22b3779da2aa43719c4beb339aea4f2f7fb30df0 /channels.h | |
parent | 70ac6784ac749ecc479163806a4e23930ce6ae17 (diff) | |
download | vdr-373c69043ae352778974735460753d5e4f500789.tar.gz vdr-373c69043ae352778974735460753d5e4f500789.tar.bz2 |
Made tChannelID::operator==() inline for better performance
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.h 1.29 2005/05/14 09:31:45 kls Exp $ + * $Id: channels.h 1.30 2005/05/26 11:11:31 kls Exp $ */ #ifndef __CHANNELS_H @@ -65,7 +65,7 @@ private: public: tChannelID(void) { source = nid = tid = sid = rid = 0; } tChannelID(int Source, int Nid, int Tid, int Sid, int Rid = 0) { source = Source; nid = Nid; tid = Tid; sid = Sid; rid = Rid; } - bool operator== (const tChannelID &arg) const; + bool operator== (const tChannelID &arg) const { return source == arg.source && nid == arg.nid && tid == arg.tid && sid == arg.sid && rid == arg.rid; } bool Valid(void) { return (nid || tid) && sid; } // rid is optional and source may be 0//XXX source may not be 0??? tChannelID &ClrRid(void) { rid = 0; return *this; } tChannelID &ClrPolarization(void); |