mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Remove GET_FIELD_AS macro, replace with template methods
This commit is contained in:
parent
a94fcad957
commit
4962986df1
15 changed files with 61 additions and 53 deletions
|
@ -434,7 +434,7 @@ void Connection::AppendAddl(const char* str)
|
|||
{
|
||||
const auto& cv = ConnVal();
|
||||
|
||||
const char* old = cv->GetStringField(6)->CheckString();
|
||||
const char* old = cv->GetFieldAs<StringVal>(6)->CheckString();
|
||||
const char* format = *old ? "%s %s" : "%s%s";
|
||||
|
||||
cv->Assign(6, make_intrusive<StringVal>(util::fmt(format, old, str)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue