From 678199d6ca82bb3debd8728d520bc15780398326 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 2 Apr 2023 09:23:53 +0200 Subject: [PATCH] /W4: Fixed name shadowing warning --- r5dev/vstdlib/concommandhash.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/r5dev/vstdlib/concommandhash.h b/r5dev/vstdlib/concommandhash.h index b39ce2c1..cbcd5956 100644 --- a/r5dev/vstdlib/concommandhash.h +++ b/r5dev/vstdlib/concommandhash.h @@ -167,21 +167,21 @@ CConCommandHash::CCommandHashIterator_t CConCommandHash::Next(const CConCommandHash::CCommandHashIterator_t& iter) const { // look for the next entry in the current bucket - CCommandHashHandle_t next = m_aDataPool.Next(iter.handle); + CCommandHashHandle_t nextEntry = m_aDataPool.Next(iter.handle); const CCommandHashHandle_t invalidIndex = m_aDataPool.InvalidIndex(); - if (next != invalidIndex) + if (nextEntry != invalidIndex) { // this bucket still has more elements in it - return CCommandHashIterator_t(iter.bucket, next); + return CCommandHashIterator_t(iter.bucket, nextEntry); } // otherwise look for the next bucket with data int bucketCount = m_aBuckets.Count(); for (int bucket = iter.bucket + 1; bucket < bucketCount; ++bucket) { - CCommandHashHandle_t next = m_aBuckets[bucket]; // get the head of the bucket - if (next != invalidIndex) - return CCommandHashIterator_t(bucket, next); + CCommandHashHandle_t nextBucket = m_aBuckets[bucket]; // get the head of the bucket + if (nextBucket != invalidIndex) + return CCommandHashIterator_t(bucket, nextBucket); } // if we're here, there's no more data to be had