mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Silenced some cppcheck warnings.
This commit is contained in:
parent
0f370aa36a
commit
e90b8651e6
2
device.c
2
device.c
@ -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);
|
||||
|
2
device.h
2
device.h
@ -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);
|
||||
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
virtual bool IsIdle(void) = 0;
|
||||
|
||||
private:
|
||||
cSatipDeviceIf(const cSatipDeviceIf&);
|
||||
explicit cSatipDeviceIf(const cSatipDeviceIf&);
|
||||
cSatipDeviceIf& operator=(const cSatipDeviceIf&);
|
||||
};
|
||||
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
virtual void SetUrl(const char *urlP) = 0;
|
||||
|
||||
private:
|
||||
cSatipDiscoverIf(const cSatipDiscoverIf&);
|
||||
explicit cSatipDiscoverIf(const cSatipDiscoverIf&);
|
||||
cSatipDiscoverIf& operator=(const cSatipDiscoverIf&);
|
||||
};
|
||||
|
||||
|
@ -26,7 +26,7 @@ private:
|
||||
bool registeredM;
|
||||
|
||||
public:
|
||||
cSatipMsearch(cSatipDiscoverIf &discoverP);
|
||||
explicit cSatipMsearch(cSatipDiscoverIf &discoverP);
|
||||
virtual ~cSatipMsearch();
|
||||
void Probe(void);
|
||||
|
||||
|
@ -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
2
rtcp.c
@ -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
2
rtcp.h
@ -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
2
rtp.h
@ -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
2
rtsp.h
@ -50,7 +50,7 @@ private:
|
||||
cSatipRtsp& operator=(const cSatipRtsp&);
|
||||
|
||||
public:
|
||||
cSatipRtsp(cSatipTunerIf &tunerP);
|
||||
explicit cSatipRtsp(cSatipTunerIf &tunerP);
|
||||
virtual ~cSatipRtsp();
|
||||
|
||||
cString RtspUnescapeString(const char *strP);
|
||||
|
4
setup.c
4
setup.c
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user