mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Smaller compile fixes for the new opaque serialization.
Also remove the non-existing clone function for EntrypyVals - which now can just use serialization :)
This commit is contained in:
parent
a50b06d6c1
commit
618f0802f4
8 changed files with 21 additions and 29 deletions
|
@ -543,7 +543,7 @@ std::unique_ptr<BitVector> BitVector::Unserialize(const broker::data& data)
|
|||
bv->bits.push_back(*x);
|
||||
}
|
||||
|
||||
return std::move(bv);
|
||||
return bv;
|
||||
}
|
||||
|
||||
BitVector::size_type BitVector::lowest_bit(block_type block)
|
||||
|
|
|
@ -70,7 +70,7 @@ std::unique_ptr<BloomFilter> BloomFilter::Unserialize(const broker::data& data)
|
|||
return nullptr;
|
||||
|
||||
bf->hasher = hasher_.release();
|
||||
return std::move(bf);
|
||||
return bf;
|
||||
}
|
||||
|
||||
size_t BasicBloomFilter::M(double fp, size_t capacity)
|
||||
|
|
|
@ -234,7 +234,7 @@ std::unique_ptr<CardinalityCounter> CardinalityCounter::Unserialize(const broker
|
|||
cc->buckets.push_back(*x);
|
||||
}
|
||||
|
||||
return std::move(cc);
|
||||
return cc;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -179,7 +179,7 @@ std::unique_ptr<CounterVector> CounterVector::Unserialize(const broker::data& da
|
|||
auto cv = std::unique_ptr<CounterVector>(new CounterVector());
|
||||
cv->width = *width;
|
||||
cv->bits = bits.release();
|
||||
return std::move(cv);
|
||||
return cv;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ std::unique_ptr<Hasher> Hasher::Unserialize(const broker::data& data)
|
|||
// their own. They reconstruct all their information from their
|
||||
// constructors' arguments.
|
||||
|
||||
return std::move(hasher);
|
||||
return hasher;
|
||||
}
|
||||
|
||||
UHF::UHF()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue