mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix a few more IntrusivePtr deprecation warnings
This commit is contained in:
parent
faa8a38578
commit
07a1821bcc
2 changed files with 3 additions and 3 deletions
|
@ -1670,8 +1670,8 @@ void HTTP_Analyzer::HTTP_Header(bool is_orig, mime::MIME_Header* h)
|
||||||
DEBUG_MSG("%.6f http_header\n", network_time);
|
DEBUG_MSG("%.6f http_header\n", network_time);
|
||||||
|
|
||||||
EnqueueConnEvent(http_header,
|
EnqueueConnEvent(http_header,
|
||||||
IntrusivePtr{AdoptRef{}, BuildConnVal()},
|
ConnVal(),
|
||||||
IntrusivePtr{AdoptRef{}, val_mgr->GetBool(is_orig)},
|
val_mgr->Bool(is_orig),
|
||||||
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_name())},
|
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_name())},
|
||||||
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_name())->ToUpper()},
|
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_name())->ToUpper()},
|
||||||
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_value())}
|
IntrusivePtr{AdoptRef{}, mime::new_string_val(h->get_value())}
|
||||||
|
|
|
@ -174,7 +174,7 @@ function bloomfilter_lookup%(bf: opaque of bloomfilter, x: any%): count
|
||||||
const BloomFilterVal* bfv = static_cast<const BloomFilterVal*>(bf);
|
const BloomFilterVal* bfv = static_cast<const BloomFilterVal*>(bf);
|
||||||
|
|
||||||
if ( ! bfv->Type() )
|
if ( ! bfv->Type() )
|
||||||
return val_mgr->GetCount(0);
|
return val_mgr->Count(0);
|
||||||
|
|
||||||
else if ( ! same_type(bfv->Type(), x->Type()) )
|
else if ( ! same_type(bfv->Type(), x->Type()) )
|
||||||
reporter->Error("incompatible Bloom filter types");
|
reporter->Error("incompatible Bloom filter types");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue