Deprecate file_analysis::File::GetVal(), replace with ToVal()

This commit is contained in:
Jon Siwek 2020-05-22 12:27:37 -07:00
parent 27c3c207e4
commit faa4738807
14 changed files with 45 additions and 59 deletions

View file

@ -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;
%}