diff --git a/libretroshare/src/retroshare/rsbroadcastdiscovery.h b/libretroshare/src/retroshare/rsbroadcastdiscovery.h index ff487c52e..2322477f1 100644 --- a/libretroshare/src/retroshare/rsbroadcastdiscovery.h +++ b/libretroshare/src/retroshare/rsbroadcastdiscovery.h @@ -59,6 +59,10 @@ struct RsBroadcastDiscoveryResult : RsSerializable RS_SERIAL_PROCESS(mProfileName); RS_SERIAL_PROCESS(locator); } + + RsBroadcastDiscoveryResult() = default; + RsBroadcastDiscoveryResult (const RsBroadcastDiscoveryResult&) = default; + ~RsBroadcastDiscoveryResult() override; }; struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent @@ -77,7 +81,7 @@ struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent RS_SERIAL_PROCESS(mData); } - ~RsBroadcastDiscoveryPeerFoundEvent(); + ~RsBroadcastDiscoveryPeerFoundEvent() override; }; /** diff --git a/libretroshare/src/services/broadcastdiscoveryservice.cc b/libretroshare/src/services/broadcastdiscoveryservice.cc index fb63e095e..cb49f6a88 100644 --- a/libretroshare/src/services/broadcastdiscoveryservice.cc +++ b/libretroshare/src/services/broadcastdiscoveryservice.cc @@ -37,6 +37,7 @@ /*extern*/ std::shared_ptr rsBroadcastDiscovery(nullptr); RsBroadcastDiscovery::~RsBroadcastDiscovery() { /* Beware of Rs prefix! */ } +RsBroadcastDiscoveryResult::~RsBroadcastDiscoveryResult() {} RsBroadcastDiscoveryPeerFoundEvent::~RsBroadcastDiscoveryPeerFoundEvent() {} struct BroadcastDiscoveryPack : RsSerializable @@ -87,8 +88,13 @@ struct BroadcastDiscoveryPack : RsSerializable serial_process(RsGenericSerializer::SERIALIZE, ctx); return std::string(reinterpret_cast(buffer.data()), ctx.mOffset); } + + BroadcastDiscoveryPack(const BroadcastDiscoveryPack&) = default; + ~BroadcastDiscoveryPack() override; }; +BroadcastDiscoveryPack::~BroadcastDiscoveryPack() {}; + BroadcastDiscoveryService::BroadcastDiscoveryService( RsPeers& pRsPeers ) : mDiscoveredDataMutex("BroadcastDiscoveryService discovered data mutex"),