mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Deprecate binpac::string_to_val
This commit is contained in:
parent
743303950b
commit
6c0a9b0d8f
2 changed files with 3 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -115,6 +115,8 @@ Deprecated Functionality
|
|||
|
||||
- ``binpac::bytestring_to_val()`` is deprecated, use ``binpac::to_stringval()``.
|
||||
|
||||
- ``binpac::string_to_val()`` is deprecated, use ``StringVal`` constructor.
|
||||
|
||||
Zeek 3.1.0
|
||||
==========
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ typedef Val* BroVal;
|
|||
typedef PortVal* BroPortVal;
|
||||
typedef StringVal* BroStringVal;
|
||||
|
||||
[[deprecated("Remove in v4.1. Use StringVal constructor directly.")]]
|
||||
inline StringVal* string_to_val(string const &str)
|
||||
{
|
||||
return new StringVal(str.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue