Skip to content

Commit

Permalink
Some const fixes to make icc happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Jun 14, 2012
1 parent 3009980 commit 05edfd9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions mythtv/libs/libmythtv/mpeg/atscstreamdata.cpp
Expand Up @@ -773,12 +773,12 @@ const MasterGuideTable *ATSCStreamData::GetCachedMGT(bool current) const
return mgt;
}

tvct_ptr_t ATSCStreamData::GetCachedTVCT(uint pid, bool current) const
const tvct_ptr_t ATSCStreamData::GetCachedTVCT(uint pid, bool current) const
{
if (!current)
LOG(VB_GENERAL, LOG_WARNING, "Currently we ignore \'current\' param");

TerrestrialVirtualChannelTable *tvct = NULL;
tvct_ptr_t tvct = NULL;

_cache_lock.lock();
tvct_cache_t::const_iterator it = _cached_tvcts.find(pid);
Expand All @@ -789,12 +789,12 @@ tvct_ptr_t ATSCStreamData::GetCachedTVCT(uint pid, bool current) const
return tvct;
}

cvct_ptr_t ATSCStreamData::GetCachedCVCT(uint pid, bool current) const
const cvct_ptr_t ATSCStreamData::GetCachedCVCT(uint pid, bool current) const
{
if (!current)
LOG(VB_GENERAL, LOG_WARNING, "Currently we ignore \'current\' param");

CableVirtualChannelTable *cvct = NULL;
cvct_ptr_t cvct = NULL;

_cache_lock.lock();
cvct_cache_t::const_iterator it = _cached_cvcts.find(pid);
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mpeg/atscstreamdata.h
Expand Up @@ -92,8 +92,8 @@ class MTV_PUBLIC ATSCStreamData : virtual public MPEGStreamData
{ return HasCachedAnyTVCTs(current) || HasCachedAnyCVCTs(current); }

const MasterGuideTable *GetCachedMGT(bool current = true) const;
tvct_ptr_t GetCachedTVCT(uint pid, bool current = true) const;
cvct_ptr_t GetCachedCVCT(uint pid, bool current = true) const;
const tvct_ptr_t GetCachedTVCT(uint pid, bool current = true) const;
const cvct_ptr_t GetCachedCVCT(uint pid, bool current = true) const;

tvct_vec_t GetCachedTVCTs(bool current = true) const;
cvct_vec_t GetCachedCVCTs(bool current = true) const;
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp
Expand Up @@ -832,7 +832,7 @@ const nit_ptr_t DVBStreamData::GetCachedNIT(
return nit;
}

const nit_vec_t DVBStreamData::GetCachedNIT(bool current) const
nit_vec_t DVBStreamData::GetCachedNIT(bool current) const
{
QMutexLocker locker(&_cache_lock);

Expand Down Expand Up @@ -866,7 +866,7 @@ const sdt_ptr_t DVBStreamData::GetCachedSDT(
return sdt;
}

const sdt_vec_t DVBStreamData::GetCachedSDTs(bool current) const
sdt_vec_t DVBStreamData::GetCachedSDTs(bool current) const
{
QMutexLocker locker(&_cache_lock);

Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/mpeg/dvbstreamdata.h
Expand Up @@ -186,10 +186,10 @@ class MTV_PUBLIC DVBStreamData : virtual public MPEGStreamData
bool HasCachedAllSDTs(bool current = true) const;

const nit_ptr_t GetCachedNIT(uint section_num, bool current = true) const;
const nit_vec_t GetCachedNIT(bool current = true) const;
nit_vec_t GetCachedNIT(bool current = true) const;
const sdt_ptr_t GetCachedSDT(uint tsid, uint section_num,
bool current = true) const;
const sdt_vec_t GetCachedSDTs(bool current = true) const;
bool current = true) const;
sdt_vec_t GetCachedSDTs(bool current = true) const;

void ReturnCachedSDTTables(sdt_vec_t&) const;

Expand Down
8 changes: 4 additions & 4 deletions mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp
Expand Up @@ -1280,7 +1280,7 @@ bool MPEGStreamData::HasAllPMTSections(uint prog_num) const

bool MPEGStreamData::HasProgram(uint progNum) const
{
pmt_ptr_t pmt = GetCachedPMT(progNum, 0);
const pmt_ptr_t pmt = GetCachedPMT(progNum, 0);
bool hasit = pmt;
ReturnCachedTable(pmt);

Expand Down Expand Up @@ -1417,7 +1417,7 @@ bool MPEGStreamData::HasCachedAnyPMTs(void) const
return _cached_pmts.size();
}

pat_ptr_t MPEGStreamData::GetCachedPAT(uint tsid, uint section_num) const
const pat_ptr_t MPEGStreamData::GetCachedPAT(uint tsid, uint section_num) const
{
QMutexLocker locker(&_cache_lock);
ProgramAssociationTable *pat = NULL;
Expand Down Expand Up @@ -1461,7 +1461,7 @@ pat_vec_t MPEGStreamData::GetCachedPATs(void) const
return pats;
}

cat_ptr_t MPEGStreamData::GetCachedCAT(uint tsid, uint section_num) const
const cat_ptr_t MPEGStreamData::GetCachedCAT(uint tsid, uint section_num) const
{
QMutexLocker locker(&_cache_lock);
ConditionalAccessTable *cat = NULL;
Expand Down Expand Up @@ -1505,7 +1505,7 @@ cat_vec_t MPEGStreamData::GetCachedCATs(void) const
return cats;
}

pmt_ptr_t MPEGStreamData::GetCachedPMT(
const pmt_ptr_t MPEGStreamData::GetCachedPMT(
uint program_num, uint section_num) const
{
QMutexLocker locker(&_cache_lock);
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/mpeg/mpegstreamdata.h
Expand Up @@ -235,17 +235,17 @@ class MTV_PUBLIC MPEGStreamData : public EITSource
bool HasCachedAllPMTs(void) const;
bool HasCachedAnyPMTs(void) const;

pat_ptr_t GetCachedPAT(uint tsid, uint section_num) const;
const pat_ptr_t GetCachedPAT(uint tsid, uint section_num) const;
pat_vec_t GetCachedPATs(uint tsid) const;
pat_vec_t GetCachedPATs(void) const;
pat_map_t GetCachedPATMap(void) const;

cat_ptr_t GetCachedCAT(uint tsid, uint section_num) const;
const cat_ptr_t GetCachedCAT(uint tsid, uint section_num) const;
cat_vec_t GetCachedCATs(uint tsid) const;
cat_vec_t GetCachedCATs(void) const;
cat_map_t GetCachedCATMap(void) const;

pmt_ptr_t GetCachedPMT(uint program_num, uint section_num) const;
const pmt_ptr_t GetCachedPMT(uint program_num, uint section_num) const;
pmt_vec_t GetCachedPMTs(void) const;
pmt_map_t GetCachedPMTMap(void) const;

Expand Down

0 comments on commit 05edfd9

Please sign in to comment.