Added missing initialize of members in constructor of GxsGroupStatistic and GxsServiceStatistic

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7747 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-12-11 13:03:09 +00:00
parent f9846c02ab
commit 70009367da

View File

@ -134,6 +134,17 @@ public:
class GxsGroupStatistic
{
public:
GxsGroupStatistic()
{
mNumMsgs = 0;
mTotalSizeOfMsgs = 0;
mNumThreadMsgsNew = 0;
mNumThreadMsgsUnread = 0;
mNumChildMsgsNew = 0;
mNumChildMsgsUnread = 0;
}
public:
/// number of message
RsGxsGroupId mGrpId;
@ -148,7 +159,21 @@ public:
class GxsServiceStatistic
{
public:
GxsServiceStatistic()
{
mNumMsgs = 0;
mNumGrps = 0;
mSizeOfMsgs = 0;
mSizeOfGrps = 0;
mNumGrpsSubscribed = 0;
mNumThreadMsgsNew = 0;
mNumThreadMsgsUnread = 0;
mNumChildMsgsNew = 0;
mNumChildMsgsUnread = 0;
mSizeStore = 0;
}
public:
uint32_t mNumMsgs;
uint32_t mNumGrps;
uint32_t mSizeOfMsgs;