mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
timermanager: fix -Waddress warning with newer gcc
The address of Events (wich is checked against NULL) can never be NULL,
because Events is passed by reference.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0531618643
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
b61bc1aa90
commit
579d81b2f2
@@ -292,9 +292,10 @@ int CTimerManager::unlockEvents()
|
|||||||
|
|
||||||
bool CTimerManager::listEvents(CTimerEventMap &Events)
|
bool CTimerManager::listEvents(CTimerEventMap &Events)
|
||||||
{
|
{
|
||||||
|
/* events is passed as reference and thus its address is never NULL
|
||||||
if(!&Events)
|
if(!&Events)
|
||||||
return false;
|
return false;
|
||||||
|
*/
|
||||||
|
|
||||||
Events.clear();
|
Events.clear();
|
||||||
for (CTimerEventMap::iterator pos = events.begin(); pos != events.end(); ++pos)
|
for (CTimerEventMap::iterator pos = events.begin(); pos != events.end(); ++pos)
|
||||||
|
Reference in New Issue
Block a user