mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Reuse delete_and_clear() template helper.
Approved by: imp
This commit is contained in:
parent
2547365730
commit
13f8bb7143
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152406
@ -105,11 +105,7 @@ event_proc::event_proc() : _prio(-1)
|
||||
|
||||
event_proc::~event_proc()
|
||||
{
|
||||
vector<eps *>::const_iterator i;
|
||||
|
||||
for (i = _epsvec.begin(); i != _epsvec.end(); i++)
|
||||
delete *i;
|
||||
_epsvec.clear();
|
||||
delete_and_clear(_epsvec);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user