1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 12:43:13 +02:00

Switch Destroy methods to delete

This commit is contained in:
Adam
2013-02-14 20:58:01 -05:00
parent 391f2822c8
commit fc1d7ea89b
32 changed files with 62 additions and 62 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ class MyForbidService : public ForbidService
std::vector<ForbidData *>::iterator it = std::find(this->forbid_data->begin(), this->forbid_data->end(), d);
if (it != this->forbid_data->end())
this->forbid_data->erase(it);
d->Destroy();
delete d;
}
ForbidData *FindForbid(const Anope::string &mask, ForbidType ftype) anope_override
@@ -65,7 +65,7 @@ class MyForbidService : public ForbidService
Log(LOG_NORMAL, "expire/forbid") << "Expiring forbid for " << d->mask << " type " << ftype;
this->forbid_data->erase(this->forbid_data->begin() + i - 1);
d->Destroy();
delete d;
}
}