mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
Fix Gcc Warning in nxsmsgsync_test.cc
/trunk/tests/unittests/libretroshare/gxs/nxs_test/nxsmsgsync_test.cc:28: warning: deleting object of abstract class type ‘RsGixsReputation’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non- virtual-dtor] delete mRep ; /trunk/tests/unittests/libretroshare/gxs/nxs_test/nxsmsgsync_test.cc:29: warning: deleting object of abstract class type ‘RsGcxs’ which has non- virtual destructor will cause undefined behavior [-Wdelete-non-virtual- dtor] delete mCircles; /trunk/tests/unittests/libretroshare/gxs/nxs_test/nxsmsgsync_test.cc:30: warning: deleting object of abstract class type ‘PgpAuxUtils’ which has non-virtual destructor will cause undefined behavior [-Wdelete-non- virtual-dtor] delete mPgpUtils;
This commit is contained in:
parent
737a2b440d
commit
73d11e1857
@ -186,7 +186,8 @@ class RsGixsReputation
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// get Reputation.
|
// get Reputation.
|
||||||
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId& id,uint32_t *identity_flags=NULL) = 0;
|
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId& id,uint32_t *identity_flags=NULL) = 0;
|
||||||
|
virtual ~RsGixsReputation(){}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** This Class pulls all the GXS Interfaces together ****/
|
/*** This Class pulls all the GXS Interfaces together ****/
|
||||||
@ -210,6 +211,7 @@ virtual ~RsGxsIdExchange() { return; }
|
|||||||
class RsGcxs
|
class RsGcxs
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~RsGcxs(){}
|
||||||
|
|
||||||
/* GXS Interface - for working out who can receive */
|
/* GXS Interface - for working out who can receive */
|
||||||
virtual bool isLoaded(const RsGxsCircleId &circleId) = 0;
|
virtual bool isLoaded(const RsGxsCircleId &circleId) = 0;
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
class PgpAuxUtils
|
class PgpAuxUtils
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~PgpAuxUtils(){}
|
||||||
|
|
||||||
virtual const RsPgpId &getPGPOwnId() = 0;
|
virtual const RsPgpId &getPGPOwnId() = 0;
|
||||||
virtual RsPgpId getPGPId(const RsPeerId& sslid) = 0;
|
virtual RsPgpId getPGPId(const RsPeerId& sslid) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user