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/lib/bindSiParserHandler.h | |
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/lib/bindSiParserHandler.h')
-rw-r--r-- | p2pvr/lib/bindSiParserHandler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2pvr/lib/bindSiParserHandler.h b/p2pvr/lib/bindSiParserHandler.h index d5fadf7..20d8dfd 100644 --- a/p2pvr/lib/bindSiParserHandler.h +++ b/p2pvr/lib/bindSiParserHandler.h @@ -8,13 +8,13 @@ namespace DVBSI { template <typename SIObject, typename Base> class BindSiParserHandler : public Base { public: - typedef boost::function<bool(SIObject)> Callback; + typedef boost::function<bool(const SIObject &)> Callback; BindSiParserHandler(const Callback & cb) : callBack(cb) { } - bool HandleTable(SIObject siObject) + bool HandleTable(const SIObject & siObject) override { return callBack(siObject); } |