Silenced some cppcheck warnings.

This commit is contained in:
Rolf Ahrenberg 2015-08-16 01:38:03 +03:00
parent 0f370aa36a
commit e90b8651e6
12 changed files with 13 additions and 13 deletions

View File

@ -350,7 +350,7 @@ bool cSatipDevice::SetChannelDevice(const cChannel *channelP, bool liveViewP)
bool cSatipDevice::SetPid(cPidHandle *handleP, int typeP, bool onP) bool cSatipDevice::SetPid(cPidHandle *handleP, int typeP, bool onP)
{ {
debug12("%s (%d, %d, %d) [device %u]", __PRETTY_FUNCTION__, handleP->pid, typeP, onP, deviceIndexM); debug12("%s (%d, %d, %d) [device %u]", __PRETTY_FUNCTION__, handleP ? handleP->pid : -1, typeP, onP, deviceIndexM);
if (pTunerM && handleP && handleP->pid >= 0) { if (pTunerM && handleP && handleP->pid >= 0) {
if (onP) if (onP)
return pTunerM->SetPid(handleP->pid, typeP, true); return pTunerM->SetPid(handleP->pid, typeP, true);

View File

@ -43,7 +43,7 @@ private:
// constructor & destructor // constructor & destructor
public: public:
cSatipDevice(unsigned int deviceIndexP); explicit cSatipDevice(unsigned int deviceIndexP);
virtual ~cSatipDevice(); virtual ~cSatipDevice();
cString GetInformation(unsigned int pageP = SATIP_DEVICE_INFO_ALL); cString GetInformation(unsigned int pageP = SATIP_DEVICE_INFO_ALL);

View File

@ -19,7 +19,7 @@ public:
virtual bool IsIdle(void) = 0; virtual bool IsIdle(void) = 0;
private: private:
cSatipDeviceIf(const cSatipDeviceIf&); explicit cSatipDeviceIf(const cSatipDeviceIf&);
cSatipDeviceIf& operator=(const cSatipDeviceIf&); cSatipDeviceIf& operator=(const cSatipDeviceIf&);
}; };

View File

@ -15,7 +15,7 @@ public:
virtual void SetUrl(const char *urlP) = 0; virtual void SetUrl(const char *urlP) = 0;
private: private:
cSatipDiscoverIf(const cSatipDiscoverIf&); explicit cSatipDiscoverIf(const cSatipDiscoverIf&);
cSatipDiscoverIf& operator=(const cSatipDiscoverIf&); cSatipDiscoverIf& operator=(const cSatipDiscoverIf&);
}; };

View File

@ -26,7 +26,7 @@ private:
bool registeredM; bool registeredM;
public: public:
cSatipMsearch(cSatipDiscoverIf &discoverP); explicit cSatipMsearch(cSatipDiscoverIf &discoverP);
virtual ~cSatipMsearch(); virtual ~cSatipMsearch();
void Probe(void); void Probe(void);

View File

@ -17,7 +17,7 @@ public:
virtual cString ToString(void) const = 0; virtual cString ToString(void) const = 0;
private: private:
cSatipPollerIf(const cSatipPollerIf&); explicit cSatipPollerIf(const cSatipPollerIf&);
cSatipPollerIf& operator=(const cSatipPollerIf&); cSatipPollerIf& operator=(const cSatipPollerIf&);
}; };

2
rtcp.c
View File

@ -36,7 +36,7 @@ int cSatipRtcp::GetFd(void)
int cSatipRtcp::GetApplicationOffset(int *lengthP) int cSatipRtcp::GetApplicationOffset(int *lengthP)
{ {
debug16("%s (%d) [device %d]", __PRETTY_FUNCTION__, *lengthP, tunerM.GetId()); debug16("%s (%d) [device %d]", __PRETTY_FUNCTION__, lengthP ? *lengthP : -1, tunerM.GetId());
if (!lengthP) if (!lengthP)
return -1; return -1;
int offset = 0; int offset = 0;

2
rtcp.h
View File

@ -23,7 +23,7 @@ private:
int GetApplicationOffset(int *lengthP); int GetApplicationOffset(int *lengthP);
public: public:
cSatipRtcp(cSatipTunerIf &tunerP); explicit cSatipRtcp(cSatipTunerIf &tunerP);
virtual ~cSatipRtcp(); virtual ~cSatipRtcp();
// for internal poller interface // for internal poller interface

2
rtp.h
View File

@ -28,7 +28,7 @@ private:
int GetHeaderLength(unsigned char *bufferP, unsigned int lengthP); int GetHeaderLength(unsigned char *bufferP, unsigned int lengthP);
public: public:
cSatipRtp(cSatipTunerIf &tunerP); explicit cSatipRtp(cSatipTunerIf &tunerP);
virtual ~cSatipRtp(); virtual ~cSatipRtp();
virtual void Close(void); virtual void Close(void);

2
rtsp.h
View File

@ -50,7 +50,7 @@ private:
cSatipRtsp& operator=(const cSatipRtsp&); cSatipRtsp& operator=(const cSatipRtsp&);
public: public:
cSatipRtsp(cSatipTunerIf &tunerP); explicit cSatipRtsp(cSatipTunerIf &tunerP);
virtual ~cSatipRtsp(); virtual ~cSatipRtsp();
cString RtspUnescapeString(const char *strP); cString RtspUnescapeString(const char *strP);

View File

@ -94,7 +94,7 @@ private:
void Setup(void); void Setup(void);
public: public:
cSatipServerInfo(cSatipServer *serverP); explicit cSatipServerInfo(cSatipServer *serverP);
virtual ~cSatipServerInfo(); virtual ~cSatipServerInfo();
virtual eOSState ProcessKey(eKeys keyP); virtual eOSState ProcessKey(eKeys keyP);
}; };
@ -145,7 +145,7 @@ private:
cSatipServer *serverM; cSatipServer *serverM;
public: public:
cSatipServerItem(cSatipServer *serverP); explicit cSatipServerItem(cSatipServer *serverP);
cSatipServer *Server(void) { return serverM; } cSatipServer *Server(void) { return serverM; }
virtual void SetMenuItem(cSkinDisplayMenu *displayMenuP, int indexP, bool currentP, bool selectableP); virtual void SetMenuItem(cSkinDisplayMenu *displayMenuP, int indexP, bool currentP, bool selectableP);
}; };

View File

@ -19,7 +19,7 @@ public:
virtual int GetId(void) = 0; virtual int GetId(void) = 0;
private: private:
cSatipTunerIf(const cSatipTunerIf&); explicit cSatipTunerIf(const cSatipTunerIf&);
cSatipTunerIf& operator=(const cSatipTunerIf&); cSatipTunerIf& operator=(const cSatipTunerIf&);
}; };