Use pre-increment instead of post-increment for iterators, and use auto for some iterators

This commit is contained in:
Chin
2015-03-01 16:55:47 +01:00
committed by Henrik Rydgard
parent 37f50a3792
commit 22593cddcc
7 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -3608,7 +3608,7 @@ bool __KernelCheckCallbacks() {
bool processed = false;
u32 error;
for (std::vector<SceUID>::iterator iter = threadqueue.begin(); iter != threadqueue.end(); iter++) {
for (auto iter = threadqueue.begin(); iter != threadqueue.end(); ++iter) {
Thread *thread = kernelObjects.Get<Thread>(*iter, error);
if (thread && __KernelCheckThreadCallbacks(thread, false)) {
processed = true;
@@ -3690,7 +3690,7 @@ std::vector<DebugThreadInfo> GetThreadsInfo()
std::vector<DebugThreadInfo> threadList;
u32 error;
for (std::vector<SceUID>::iterator iter = threadqueue.begin(); iter != threadqueue.end(); iter++)
for (auto iter = threadqueue.begin(); iter != threadqueue.end(); ++iter)
{
Thread *t = kernelObjects.Get<Thread>(*iter, error);
if (!t)