mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Fix a couple of clang warnings
This commit is contained in:
parent
c727190041
commit
fcb2875312
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -37,6 +37,7 @@
|
||||
|
||||
/*extern*/ std::shared_ptr<RsBroadcastDiscovery> 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<char*>(buffer.data()), ctx.mOffset);
|
||||
}
|
||||
|
||||
BroadcastDiscoveryPack(const BroadcastDiscoveryPack&) = default;
|
||||
~BroadcastDiscoveryPack() override;
|
||||
};
|
||||
|
||||
BroadcastDiscoveryPack::~BroadcastDiscoveryPack() {};
|
||||
|
||||
BroadcastDiscoveryService::BroadcastDiscoveryService(
|
||||
RsPeers& pRsPeers ) :
|
||||
mDiscoveredDataMutex("BroadcastDiscoveryService discovered data mutex"),
|
||||
|
Loading…
Reference in New Issue
Block a user