mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 17:37:12 -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(mProfileName);
|
||||||
RS_SERIAL_PROCESS(locator);
|
RS_SERIAL_PROCESS(locator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RsBroadcastDiscoveryResult() = default;
|
||||||
|
RsBroadcastDiscoveryResult (const RsBroadcastDiscoveryResult&) = default;
|
||||||
|
~RsBroadcastDiscoveryResult() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent
|
struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent
|
||||||
@ -77,7 +81,7 @@ struct RsBroadcastDiscoveryPeerFoundEvent : RsEvent
|
|||||||
RS_SERIAL_PROCESS(mData);
|
RS_SERIAL_PROCESS(mData);
|
||||||
}
|
}
|
||||||
|
|
||||||
~RsBroadcastDiscoveryPeerFoundEvent();
|
~RsBroadcastDiscoveryPeerFoundEvent() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
/*extern*/ std::shared_ptr<RsBroadcastDiscovery> rsBroadcastDiscovery(nullptr);
|
/*extern*/ std::shared_ptr<RsBroadcastDiscovery> rsBroadcastDiscovery(nullptr);
|
||||||
RsBroadcastDiscovery::~RsBroadcastDiscovery() { /* Beware of Rs prefix! */ }
|
RsBroadcastDiscovery::~RsBroadcastDiscovery() { /* Beware of Rs prefix! */ }
|
||||||
|
RsBroadcastDiscoveryResult::~RsBroadcastDiscoveryResult() {}
|
||||||
RsBroadcastDiscoveryPeerFoundEvent::~RsBroadcastDiscoveryPeerFoundEvent() {}
|
RsBroadcastDiscoveryPeerFoundEvent::~RsBroadcastDiscoveryPeerFoundEvent() {}
|
||||||
|
|
||||||
struct BroadcastDiscoveryPack : RsSerializable
|
struct BroadcastDiscoveryPack : RsSerializable
|
||||||
@ -87,8 +88,13 @@ struct BroadcastDiscoveryPack : RsSerializable
|
|||||||
serial_process(RsGenericSerializer::SERIALIZE, ctx);
|
serial_process(RsGenericSerializer::SERIALIZE, ctx);
|
||||||
return std::string(reinterpret_cast<char*>(buffer.data()), ctx.mOffset);
|
return std::string(reinterpret_cast<char*>(buffer.data()), ctx.mOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BroadcastDiscoveryPack(const BroadcastDiscoveryPack&) = default;
|
||||||
|
~BroadcastDiscoveryPack() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BroadcastDiscoveryPack::~BroadcastDiscoveryPack() {};
|
||||||
|
|
||||||
BroadcastDiscoveryService::BroadcastDiscoveryService(
|
BroadcastDiscoveryService::BroadcastDiscoveryService(
|
||||||
RsPeers& pRsPeers ) :
|
RsPeers& pRsPeers ) :
|
||||||
mDiscoveredDataMutex("BroadcastDiscoveryService discovered data mutex"),
|
mDiscoveredDataMutex("BroadcastDiscoveryService discovered data mutex"),
|
||||||
|
Loading…
Reference in New Issue
Block a user