mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix clang-tidy modernize-pass-by-value findings
This commit is contained in:
parent
46e67a749a
commit
5930d2f944
22 changed files with 37 additions and 40 deletions
|
@ -17,17 +17,14 @@ using zeek::threading::Value;
|
|||
|
||||
namespace zeek::input::reader::detail {
|
||||
|
||||
FieldMapping::FieldMapping(const string& arg_name, const TypeTag& arg_type, int arg_position)
|
||||
: name(arg_name), type(arg_type), subtype(TYPE_ERROR) {
|
||||
position = arg_position;
|
||||
FieldMapping::FieldMapping(string arg_name, const TypeTag& arg_type, int arg_position)
|
||||
: name(std::move(arg_name)), type(arg_type), subtype(TYPE_ERROR), position(arg_position) {
|
||||
secondary_position = -1;
|
||||
present = true;
|
||||
}
|
||||
|
||||
FieldMapping::FieldMapping(const string& arg_name, const TypeTag& arg_type, const TypeTag& arg_subtype,
|
||||
int arg_position)
|
||||
: name(arg_name), type(arg_type), subtype(arg_subtype) {
|
||||
position = arg_position;
|
||||
FieldMapping::FieldMapping(string arg_name, const TypeTag& arg_type, const TypeTag& arg_subtype, int arg_position)
|
||||
: name(std::move(arg_name)), type(arg_type), subtype(arg_subtype), position(arg_position) {
|
||||
secondary_position = -1;
|
||||
present = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue