mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Use shared_ptrs for DNS_Mapping objects
This commit is contained in:
parent
b531ec97ef
commit
c4cac72fd7
4 changed files with 32 additions and 36 deletions
|
@ -171,7 +171,7 @@ void DNS_Mapping::Save(FILE* f) const
|
|||
fprintf(f, "%s\n", addr.AsString().c_str());
|
||||
}
|
||||
|
||||
void DNS_Mapping::Merge(DNS_Mapping* other)
|
||||
void DNS_Mapping::Merge(const DNS_MappingPtr& other)
|
||||
{
|
||||
std::copy(other->names.begin(), other->names.end(), std::back_inserter(names));
|
||||
std::copy(other->addrs.begin(), other->addrs.end(), std::back_inserter(addrs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue