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:
Stefan Seyfried
2016-11-12 18:25:06 +01:00
committed by vanhofen
parent b61bc1aa90
commit 579d81b2f2

View File

@@ -292,9 +292,10 @@ int CTimerManager::unlockEvents()
bool CTimerManager::listEvents(CTimerEventMap &Events)
{
/* events is passed as reference and thus its address is never NULL
if(!&Events)
return false;
*/
Events.clear();
for (CTimerEventMap::iterator pos = events.begin(); pos != events.end(); ++pos)