mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Bloomfilter related clang-format fixes
This commit is contained in:
parent
42bc6db359
commit
9b73eb7561
3 changed files with 2 additions and 3 deletions
|
@ -755,7 +755,6 @@ BloomFilterValPtr BloomFilterVal::Intersect(const BloomFilterVal* x, const Bloom
|
||||||
return intersected;
|
return intersected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BloomFilterVal::~BloomFilterVal()
|
BloomFilterVal::~BloomFilterVal()
|
||||||
{
|
{
|
||||||
delete hash;
|
delete hash;
|
||||||
|
|
|
@ -143,6 +143,7 @@ class CountingBloomFilter;
|
||||||
class BasicBloomFilter : public BloomFilter
|
class BasicBloomFilter : public BloomFilter
|
||||||
{
|
{
|
||||||
friend class CountingBloomFilter;
|
friend class CountingBloomFilter;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructs a basic Bloom filter with a given number of cells. The
|
* Constructs a basic Bloom filter with a given number of cells. The
|
||||||
|
@ -260,7 +261,6 @@ public:
|
||||||
*/
|
*/
|
||||||
BasicBloomFilter* Intersect(const BloomFilter* other) const override;
|
BasicBloomFilter* Intersect(const BloomFilter* other) const override;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class BloomFilter;
|
friend class BloomFilter;
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ BitVector CounterVector::ToBitVector() const
|
||||||
bool set = false;
|
bool set = false;
|
||||||
|
|
||||||
for ( size_t i = 0; i < width; ++i )
|
for ( size_t i = 0; i < width; ++i )
|
||||||
set |= (*bits)[lsb+1];
|
set |= (*bits)[lsb + 1];
|
||||||
|
|
||||||
newbits[cell] = set;
|
newbits[cell] = set;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue