Deprecate VectorVal(VectorType*) ctora

Adds a new one taking an IntrusivePtr.
This commit is contained in:
Jon Siwek 2020-05-09 12:01:03 -07:00
parent c5236ecaee
commit d4dba40727
51 changed files with 171 additions and 160 deletions

View file

@ -499,7 +499,7 @@ string Manager::DetectMIME(const u_char* data, uint64_t len) const
IntrusivePtr<VectorVal> file_analysis::GenMIMEMatchesVal(const RuleMatcher::MIME_Matches& m)
{
auto rval = make_intrusive<VectorVal>(mime_matches);
auto rval = make_intrusive<VectorVal>(IntrusivePtr{NewRef{}, mime_matches});
for ( RuleMatcher::MIME_Matches::const_iterator it = m.begin();
it != m.end(); ++it )