mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Fix various compiler/linter warnings in script_opt/CPP code
This commit is contained in:
parent
e200016200
commit
3e85375010
15 changed files with 43 additions and 41 deletions
|
@ -36,9 +36,8 @@ broker::expected<broker::data> CPPLambdaFunc::SerializeClosure() const
|
|||
|
||||
broker::vector body;
|
||||
|
||||
for ( int i = 0; i < vals.size(); ++i )
|
||||
for ( const auto& val : vals )
|
||||
{
|
||||
const auto& val = vals[i];
|
||||
auto expected = Broker::detail::val_to_data(val.get());
|
||||
if ( ! expected )
|
||||
return broker::ec::invalid_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue