mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'smart_ptr' of https://github.com/MaxKellermann/zeek
Minor whitespace fixes during merge. * 'smart_ptr' of https://github.com/MaxKellermann/zeek: OpaqueVal: remove misplaced `virtual` keywords CompHash: use class IntrusivePtr for the `type` field IntrusivePtr: replace the "add_ref" parameter with tag structs IntrusivePtr: remove reset(), nobody uses it IntrusivePtr: remove ordering operators IntrusivePtr: rename detach() to release() IntrusivePtr: move nullptr initializer to field declaration
This commit is contained in:
commit
38b25cf38d
18 changed files with 129 additions and 119 deletions
|
@ -13,10 +13,9 @@
|
|||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
CompositeHash::CompositeHash(TypeList* composite_type)
|
||||
CompositeHash::CompositeHash(IntrusivePtr<TypeList> composite_type)
|
||||
: type(std::move(composite_type))
|
||||
{
|
||||
type = composite_type;
|
||||
Ref(type);
|
||||
singleton_tag = TYPE_INTERNAL_ERROR;
|
||||
|
||||
// If the only element is a record, don't treat it as a
|
||||
|
@ -66,7 +65,6 @@ CompositeHash::CompositeHash(TypeList* composite_type)
|
|||
|
||||
CompositeHash::~CompositeHash()
|
||||
{
|
||||
Unref(type);
|
||||
delete [] key;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue