eitd/sectionsd: remove USE_BOOST_SHARED_PTR

Origin commit data
------------------
Branch: ni/coolstream
Commit: 97250fe9a2
Author: Frankenstone <dampf_acc@online.de>
Date: 2022-09-12 (Mon, 12 Sep 2022)

Origin message was:
------------------
- eitd/sectionsd: remove USE_BOOST_SHARED_PTR

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Frankenstone
2022-09-12 21:48:32 +02:00
committed by vanhofen
parent 81b78aa081
commit 1e94e304c3
2 changed files with 3 additions and 12 deletions

View File

@@ -38,15 +38,9 @@
#include "SIsections.hpp"
#include "SIlanguage.hpp"
#include "debug.h"
//#define USE_BOOST_SHARED_PTR
#ifdef USE_BOOST_SHARED_PTR
#include <boost/shared_ptr.hpp>
typedef boost::shared_ptr<class SIevent> SIeventPtr;
typedef boost::shared_ptr<class SIservice> SIservicePtr;
#else
typedef SIevent * SIeventPtr;
typedef SIservice * SIservicePtr;
#endif
/* period to restart EIT reading */
#define TIME_EIT_SCHEDULED_PAUSE 60 * 60

View File

@@ -249,10 +249,8 @@ static bool deleteEvent(const t_event_id uniqueKey)
mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.erase(e->second);
mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.erase(e->second);
}
#ifndef USE_BOOST_SHARED_PTR
delete e->second;
#endif
mySIeventsOrderUniqueKey.erase(uniqueKey);
mySIeventsNVODorderUniqueKey.erase(uniqueKey);
ret = true;
@@ -1177,7 +1175,6 @@ static void FreeMemory()
writeLockEvents();
#ifndef USE_BOOST_SHARED_PTR
std::set<SIeventPtr> allevents;
allevents.insert(mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.begin(), mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.end());
@@ -1192,7 +1189,7 @@ static void FreeMemory()
for(std::set<SIeventPtr>::iterator ait = allevents.begin(); ait != allevents.end(); ++ait)
delete (*ait);
#endif
mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.clear();
mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.clear();
mySIeventsOrderUniqueKey.clear();