mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue