Remove some cppcheck warnings in vvp directory

This commit is contained in:
Cary R 2012-08-08 11:42:37 -07:00
parent 7ce8a9b01c
commit 87ea093b4e
1 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ void vthreads_delete(struct __vpiScope*scope)
*/
static void vthread_reap(vthread_t thr)
{
if (thr->children.size() > 0) {
if (! thr->children.empty()) {
for (set<vthread_t>::iterator cur = thr->children.begin()
; cur != thr->children.end() ; ++cur) {
vthread_t curp = *cur;
@ -507,7 +507,7 @@ static void vthread_reap(vthread_t thr)
it now. Otherwise, let the schedule event (which will
execute the thread at of_ZOMBIE) delete the object. */
if ((thr->is_scheduled == 0) && (thr->waiting_for_event == 0)) {
assert(thr->children.size() == 0);
assert(thr->children.empty());
assert(thr->wait_next == 0);
if (thr->delay_delete)
schedule_del_thr(thr);