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.
This commit is contained in:
Stefan Seyfried
2016-11-12 18:25:06 +01:00
parent bc06052985
commit 4bd8696a84

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)