mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 05:41:24 -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){
|
||||
|
||||
}
|
||||
virtual ~NotifyWithPeerId(){}
|
||||
|
||||
void notifyNewMessages(std::vector<RsNxsMsg*>& messages)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user