Fix all - 2 cppcheck performance hints
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user