diff options
author | bland <bland@FreeBSD.org> | 2005-11-14 02:01:10 +0000 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2005-11-14 02:01:10 +0000 |
commit | b093df020c029094eeedd740f4e7e6e8b27acdde (patch) | |
tree | 9a961f948f45a1329a33c5611840a4e9b20b0119 /sbin | |
parent | 5e7ee47b83e1eabf844fb2aa4d2042673b37abfe (diff) | |
download | FreeBSD-src-b093df020c029094eeedd740f4e7e6e8b27acdde.zip FreeBSD-src-b093df020c029094eeedd740f4e7e6e8b27acdde.tar.gz |
Reuse delete_and_clear() template helper.
Approved by: imp
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/devd/devd.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index f0578b4..3528736 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -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 |