mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Add a couple of mising assignment operators to match copy constructors
This commit is contained in:
parent
e8dbfc1cb0
commit
859588d710
4 changed files with 33 additions and 0 deletions
|
@ -47,6 +47,21 @@ FieldMapping FieldMapping::subType()
|
|||
return FieldMapping(name, subtype, position);
|
||||
}
|
||||
|
||||
FieldMapping& FieldMapping::operator=(const FieldMapping& arg)
|
||||
{
|
||||
if ( this == &arg )
|
||||
return *this;
|
||||
|
||||
name = arg.name;
|
||||
type = arg.type;
|
||||
subtype = arg.subtype;
|
||||
present = arg.present;
|
||||
position = arg.position;
|
||||
secondary_position = arg.secondary_position;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Ascii::Ascii(ReaderFrontend* frontend) : ReaderBackend(frontend)
|
||||
{
|
||||
mtime = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue