Fix all - 2 cppcheck performance hints

This commit is contained in:
heckflosse
2016-07-06 13:04:24 +02:00
parent a991d53bf3
commit c8779c04f5
43 changed files with 114 additions and 146 deletions

View File

@@ -42,7 +42,7 @@ void BatchQueueEntryUpdater::process (guint8* oimg, int ow, int oh, int newh, BQ
// look up if an older version is in the queue
std::list<Job>::iterator i;
for (i = jqueue.begin(); i != jqueue.end(); i++)
for (i = jqueue.begin(); i != jqueue.end(); ++i)
if (i->oimg == oimg && i->listener == listener) {
i->ow = ow;
i->oh = oh;
@@ -169,7 +169,7 @@ void BatchQueueEntryUpdater::removeJobs (BQEntryUpdateListener* listener)
ready = true;
std::list<Job>::iterator i;
for (i = jqueue.begin(); i != jqueue.end(); i++)
for (i = jqueue.begin(); i != jqueue.end(); ++i)
if (i->listener == listener) {
jqueue.erase (i);
ready = false;