mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 18:44:53 -05:00
Fix Gcc Warning in nxstesthub.cc
/tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc:109: warning: deleting object of polymorphic class type ‘NotifyWithPeerId’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non- virtual-dtor] delete *it ;
This commit is contained in:
parent
cfcdec458a
commit
737a2b440d
@ -10,6 +10,7 @@ public:
|
|||||||
: mPeerId(val), mTestHub(hub){
|
: mPeerId(val), mTestHub(hub){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
virtual ~NotifyWithPeerId(){}
|
||||||
|
|
||||||
void notifyNewMessages(std::vector<RsNxsMsg*>& messages)
|
void notifyNewMessages(std::vector<RsNxsMsg*>& messages)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user