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)
{
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 (onP)
return pTunerM->SetPid(handleP->pid, typeP, true);

View File

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

View File

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

View File

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

View File

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

View File

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

2
rtcp.c
View File

@ -36,7 +36,7 @@ int cSatipRtcp::GetFd(void)
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)
return -1;
int offset = 0;

2
rtcp.h
View File

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

2
rtp.h
View File

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

2
rtsp.h
View File

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

View File

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

View File

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