mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Deprecate file_analysis::File::GetVal(), replace with ToVal()
This commit is contained in:
parent
27c3c207e4
commit
faa4738807
14 changed files with 45 additions and 59 deletions
|
@ -86,10 +86,8 @@ function Files::__lookup_file%(fuid: string%): fa_file
|
|||
%{
|
||||
auto f = file_mgr->LookupFile(fuid->CheckString());
|
||||
if ( f != nullptr )
|
||||
{
|
||||
return IntrusivePtr{NewRef{}, f->GetVal()};
|
||||
}
|
||||
|
||||
return f->ToVal();
|
||||
|
||||
reporter->Error("file ID %s not a known file", fuid->CheckString());
|
||||
return nullptr;
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue