Readd struct disappeared in rebase + fix warning

This commit is contained in:
Gioacchino Mazzurco 2020-04-04 01:09:18 +02:00
parent 612d47908d
commit 13e0179812
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
2 changed files with 11 additions and 2 deletions

View file

@ -1969,3 +1969,4 @@ bool RsGxsDataAccess::checkMsgFilter(
return true; return true;
} }
GxsGroupStatistic::~GxsGroupStatistic() = default;

View file

@ -191,6 +191,14 @@ struct RsMsgMetaData : RsSerializable
} }
}; };
struct RsGxsGenericMsgData
{
virtual ~RsGxsGenericMsgData() = default; // making the type polymorphic
RsMsgMetaData mMeta;
};
struct GxsGroupStatistic : RsSerializable struct GxsGroupStatistic : RsSerializable
{ {
GxsGroupStatistic() : GxsGroupStatistic() :
@ -199,7 +207,7 @@ struct GxsGroupStatistic : RsSerializable
/// @see RsSerializable /// @see RsSerializable
void serial_process( RsGenericSerializer::SerializeJob j, void serial_process( RsGenericSerializer::SerializeJob j,
RsGenericSerializer::SerializeContext& ctx) override RsGenericSerializer::SerializeContext& ctx ) override
{ {
RS_SERIAL_PROCESS(mGrpId); RS_SERIAL_PROCESS(mGrpId);
RS_SERIAL_PROCESS(mNumMsgs); RS_SERIAL_PROCESS(mNumMsgs);
@ -219,7 +227,7 @@ struct GxsGroupStatistic : RsSerializable
uint32_t mNumChildMsgsNew; uint32_t mNumChildMsgsNew;
uint32_t mNumChildMsgsUnread; uint32_t mNumChildMsgsUnread;
~GxsGroupStatistic() override = default; ~GxsGroupStatistic() override;
}; };
class GxsServiceStatistic class GxsServiceStatistic