let turtle reputation classes initialise their integers

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8531 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-06-19 12:04:48 +00:00
parent dc65d365d8
commit 728d5d6704

View File

@ -44,10 +44,10 @@ class ReputationConfig
{
public:
ReputationConfig()
:mPeerId(), mLatestUpdate(0) { return; }
:mPeerId(), mLatestUpdate(0), mLastQuery(0) { return; }
ReputationConfig(const RsPeerId& peerId)
:mPeerId(peerId), mLatestUpdate(0) { return; }
:mPeerId(peerId), mLatestUpdate(0), mLastQuery(0) { return; }
RsPeerId mPeerId;
time_t mLatestUpdate;
@ -58,10 +58,10 @@ class Reputation
{
public:
Reputation()
:mOwnOpinion(0) { return; }
:mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; }
Reputation(const RsGxsId& about)
:mGxsId(about), mOwnOpinion(0) { return; }
:mGxsId(about), mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; }
int32_t CalculateReputation();