diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-03 21:25:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-03 21:25:30 +0100 |
commit | be11c414303f849d19f3e0a745759b3a322213f5 (patch) | |
tree | f6e0f2be5195cc22927f4be62aa218a816581abf /p2pvr/daemon | |
parent | Internalise and tidy common helpers (diff) | |
download | p2pvr-be11c414303f849d19f3e0a745759b3a322213f5.tar.bz2 p2pvr-be11c414303f849d19f3e0a745759b3a322213f5.tar.xz p2pvr-be11c414303f849d19f3e0a745759b3a322213f5.zip |
Pass table object to handler by reference.
Add override attribute where missing in parsers
Diffstat (limited to 'p2pvr/daemon')
-rw-r--r-- | p2pvr/daemon/maintenance/events.cpp | 2 | ||||
-rw-r--r-- | p2pvr/daemon/maintenance/network.cpp | 2 | ||||
-rw-r--r-- | p2pvr/daemon/maintenance/services.cpp | 2 | ||||
-rw-r--r-- | p2pvr/daemon/unittests/testErrorHandling.cpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/p2pvr/daemon/maintenance/events.cpp b/p2pvr/daemon/maintenance/events.cpp index 8a642f9..05c9149 100644 --- a/p2pvr/daemon/maintenance/events.cpp +++ b/p2pvr/daemon/maintenance/events.cpp @@ -20,7 +20,7 @@ class SiEventsStream : public Slicer::Stream<::DVBSI::EventPtr> { { } - bool HandleTable(::DVBSI::EventPtr e) override + bool HandleTable(const ::DVBSI::EventPtr & e) override { logger->messagebf(LOG::DEBUG, "Service Id: %d Program Id: %d Title: %s Time: %s - %s", e->ServiceId, e->EventId, e->Title, e->StartTime, e->StopTime); diff --git a/p2pvr/daemon/maintenance/network.cpp b/p2pvr/daemon/maintenance/network.cpp index 56f3754..3e08628 100644 --- a/p2pvr/daemon/maintenance/network.cpp +++ b/p2pvr/daemon/maintenance/network.cpp @@ -15,7 +15,7 @@ class SiNetworkInformationMerger : public DVBSI::SiNetworkInformationParser { { } - bool HandleTable(::DVBSI::NetworkPtr n) + bool HandleTable(const ::DVBSI::NetworkPtr & n) { logger->messagebf(LOG::DEBUG, "Network Id: %d Name: %s", n->NetworkId, *n->Name); for (const auto & ts : n->TransportStreams) { diff --git a/p2pvr/daemon/maintenance/services.cpp b/p2pvr/daemon/maintenance/services.cpp index e04c200..d83e68a 100644 --- a/p2pvr/daemon/maintenance/services.cpp +++ b/p2pvr/daemon/maintenance/services.cpp @@ -16,7 +16,7 @@ class SiServicesMerger : public DVBSI::SiServicesParser { { } - bool HandleTable(::DVBSI::TransportStreamPtr ts) + bool HandleTable(const ::DVBSI::TransportStreamPtr & ts) { logger->messagebf(LOG::DEBUG, "Transport Stream Id: %d Original Network Id: %s", ts->TransportStreamId, ts->OriginalNetworkId); for (const auto & s : ts->Services) { diff --git a/p2pvr/daemon/unittests/testErrorHandling.cpp b/p2pvr/daemon/unittests/testErrorHandling.cpp index 3758aff..db07293 100644 --- a/p2pvr/daemon/unittests/testErrorHandling.cpp +++ b/p2pvr/daemon/unittests/testErrorHandling.cpp @@ -48,7 +48,7 @@ class FailingTestClient : public RawDataClient { class TestNetworkParser : public SiNetworkInformationParser { public: - bool HandleTable(::DVBSI::NetworkPtr) override + bool HandleTable(const ::DVBSI::NetworkPtr &) override { return false; } @@ -56,7 +56,7 @@ class TestNetworkParser : public SiNetworkInformationParser { class FailingTestNetworkParser : public SiNetworkInformationParser { public: - bool HandleTable(::DVBSI::NetworkPtr) override + bool HandleTable(const ::DVBSI::NetworkPtr &) override { throw DataHandlingException(); } |