mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Deprecate ID::ID_Val(), replace with ID::GetVal()
This commit is contained in:
parent
16a8bf3318
commit
32b895f4ba
23 changed files with 69 additions and 68 deletions
|
@ -31,10 +31,10 @@ static inline Val* get_option(const char* option)
|
|||
{
|
||||
auto id = global_scope()->Lookup(option);
|
||||
|
||||
if ( ! (id && id->ID_Val()) )
|
||||
if ( ! (id && id->GetVal()) )
|
||||
reporter->FatalError("Unknown Broker option %s", option);
|
||||
|
||||
return id->ID_Val();
|
||||
return id->GetVal().get();
|
||||
}
|
||||
|
||||
class BrokerConfig : public broker::configuration {
|
||||
|
@ -418,14 +418,14 @@ bool Manager::PublishIdentifier(std::string topic, std::string id)
|
|||
if ( ! i )
|
||||
return false;
|
||||
|
||||
auto val = i->ID_Val();
|
||||
const auto& val = i->GetVal();
|
||||
|
||||
if ( ! val )
|
||||
// Probably could have a special case to also unset the value on the
|
||||
// receiving side, but not sure what use that would be.
|
||||
return false;
|
||||
|
||||
auto data = val_to_data(val);
|
||||
auto data = val_to_data(val.get());
|
||||
|
||||
if ( ! data )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue