mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-17 09:34:10 -05:00
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:
parent
dc65d365d8
commit
728d5d6704
1 changed files with 4 additions and 4 deletions
|
|
@ -44,10 +44,10 @@ class ReputationConfig
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ReputationConfig()
|
ReputationConfig()
|
||||||
:mPeerId(), mLatestUpdate(0) { return; }
|
:mPeerId(), mLatestUpdate(0), mLastQuery(0) { return; }
|
||||||
|
|
||||||
ReputationConfig(const RsPeerId& peerId)
|
ReputationConfig(const RsPeerId& peerId)
|
||||||
:mPeerId(peerId), mLatestUpdate(0) { return; }
|
:mPeerId(peerId), mLatestUpdate(0), mLastQuery(0) { return; }
|
||||||
|
|
||||||
RsPeerId mPeerId;
|
RsPeerId mPeerId;
|
||||||
time_t mLatestUpdate;
|
time_t mLatestUpdate;
|
||||||
|
|
@ -58,10 +58,10 @@ class Reputation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Reputation()
|
Reputation()
|
||||||
:mOwnOpinion(0) { return; }
|
:mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; }
|
||||||
|
|
||||||
Reputation(const RsGxsId& about)
|
Reputation(const RsGxsId& about)
|
||||||
:mGxsId(about), mOwnOpinion(0) { return; }
|
:mGxsId(about), mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; }
|
||||||
|
|
||||||
int32_t CalculateReputation();
|
int32_t CalculateReputation();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue