Use unique_ptr for pfilter (CBloomFilter)

This commit is contained in:
practicalswift
2017-08-09 16:14:37 +02:00
parent 8ccf1bb0c3
commit f72cbf9ba9
3 changed files with 4 additions and 8 deletions

View File

@@ -648,7 +648,7 @@ public:
bool fSentAddr;
CSemaphoreGrant grantOutbound;
CCriticalSection cs_filter;
CBloomFilter* pfilter;
std::unique_ptr<CBloomFilter> pfilter;
std::atomic<int> nRefCount;
const uint64_t nKeyedNetGroup;