diff --git a/libretroshare/src/serialiser/rsgxsreputationitems.h b/libretroshare/src/serialiser/rsgxsreputationitems.h index bbd75db50..ca6d8f9a3 100644 --- a/libretroshare/src/serialiser/rsgxsreputationitems.h +++ b/libretroshare/src/serialiser/rsgxsreputationitems.h @@ -80,7 +80,7 @@ class RsGxsReputationSetItem: public RsReputationItem public: RsGxsReputationSetItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_SET_ITEM) {} - virtual ~RsGxsReputationSetItem(); + virtual ~RsGxsReputationSetItem() {} virtual void clear(); std::ostream &print(std::ostream &out, uint16_t indent = 0); @@ -99,7 +99,7 @@ class RsGxsReputationUpdateItem: public RsReputationItem public: RsGxsReputationUpdateItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_UPDATE_ITEM) {} - virtual ~RsGxsReputationUpdateItem(); + virtual ~RsGxsReputationUpdateItem() {} virtual void clear(); std::ostream &print(std::ostream &out, uint16_t indent = 0); @@ -115,7 +115,7 @@ class RsGxsReputationRequestItem: public RsReputationItem public: RsGxsReputationRequestItem() :RsReputationItem(RS_PKT_SUBTYPE_GXS_REPUTATION_REQUEST_ITEM) {} - virtual ~RsGxsReputationRequestItem(); + virtual ~RsGxsReputationRequestItem() {} virtual void clear() {} std::ostream &print(std::ostream &out, uint16_t indent = 0); diff --git a/libretroshare/src/services/p3gxsreputation.cc b/libretroshare/src/services/p3gxsreputation.cc index 0cac0cf31..6c7479785 100644 --- a/libretroshare/src/services/p3gxsreputation.cc +++ b/libretroshare/src/services/p3gxsreputation.cc @@ -684,4 +684,10 @@ int p3GxsReputation::sendReputationRequest(RsPeerId peerid) return 1; } - +float Reputation::CalculateReputation() +{ + // the calculation of reputation makes the whole thing + + std::cerr << __PRETTY_FUNCTION__ << ": not implemented yet!" << std::endl; + return 0.0 ; +} diff --git a/libretroshare/src/services/p3gxsreputation.h b/libretroshare/src/services/p3gxsreputation.h index 1b519c5cb..1ee828a68 100644 --- a/libretroshare/src/services/p3gxsreputation.h +++ b/libretroshare/src/services/p3gxsreputation.h @@ -64,14 +64,14 @@ public: Reputation(const RsGxsId& about) :mGxsId(about), mOwnOpinion(0), mOwnOpinionTs(0), mReputation(0) { return; } -int32_t CalculateReputation(); + float CalculateReputation(); RsGxsId mGxsId; std::map mOpinions; int32_t mOwnOpinion; time_t mOwnOpinionTs; - int32_t mReputation; + float mReputation; }; @@ -91,8 +91,6 @@ class p3GxsReputation: public p3Service, public p3Config, public RsReputations / virtual bool setOwnOpinion(const RsGxsId& key_id, const Opinion& op) ; virtual bool getReputationInfo(const RsGxsId& id,ReputationInfo& info) ; - virtual bool updateOpinion(const RsGxsId& gxsid, int opinion); - /***** overloaded from p3Service *****/ /*! * This retrieves all chat msg items and also (important!)