mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Anon: remove unnecessary {map,vector}::clear() calls
The destructor will do this automatically.
This commit is contained in:
parent
05f692995d
commit
acdfd5706e
2 changed files with 1 additions and 3 deletions
|
@ -144,8 +144,6 @@ AnonymizeIPAddr_A50::~AnonymizeIPAddr_A50()
|
|||
{
|
||||
for ( unsigned int i = 0; i < blocks.size(); ++i )
|
||||
delete [] blocks[i];
|
||||
|
||||
blocks.clear();
|
||||
}
|
||||
|
||||
void AnonymizeIPAddr_A50::init()
|
||||
|
|
|
@ -40,7 +40,7 @@ typedef uint32_t ipaddr32_t;
|
|||
|
||||
class AnonymizeIPAddr {
|
||||
public:
|
||||
virtual ~AnonymizeIPAddr() { mapping.clear(); }
|
||||
virtual ~AnonymizeIPAddr() = default;
|
||||
|
||||
ipaddr32_t Anonymize(ipaddr32_t addr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue