mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Various deprecation fixes, reported by failed Spicy builds
- Add deprecated version of ID::SetType() that takes Type* - Add deprecated versions of zeek::set_location in the global namespace - Fix global namespace version of lookup_ID to return ID*
This commit is contained in:
parent
118605f4ac
commit
4d96b7f1cc
6 changed files with 140 additions and 121 deletions
|
@ -136,6 +136,11 @@ void ID::SetType(zeek::TypePtr t)
|
|||
type = std::move(t);
|
||||
}
|
||||
|
||||
void ID::SetType(zeek::Type* t)
|
||||
{
|
||||
SetType({AdoptRef(), t});
|
||||
}
|
||||
|
||||
void ID::ClearVal()
|
||||
{
|
||||
val = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue