clang-tidy modernize-use-auto

This commit is contained in:
Michael Cook (mackal)
2016-05-25 16:10:28 -04:00
parent cdbeb24a05
commit 60da544d3a
87 changed files with 1465 additions and 1340 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ void QGlobalCache::AddGlobal(uint32 id, QGlobal global)
void QGlobalCache::RemoveGlobal(std::string name, uint32 npcID, uint32 charID, uint32 zoneID)
{
std::list<QGlobal>::iterator iter = qGlobalBucket.begin();
auto iter = qGlobalBucket.begin();
while(iter != qGlobalBucket.end())
{
if(name.compare((*iter).name) == 0)
@@ -31,7 +31,7 @@ void QGlobalCache::RemoveGlobal(std::string name, uint32 npcID, uint32 charID, u
void QGlobalCache::Combine(std::list<QGlobal> &cacheA, std::list<QGlobal> cacheB, uint32 npcID, uint32 charID, uint32 zoneID)
{
std::list<QGlobal>::iterator iter = cacheB.begin();
auto iter = cacheB.begin();
while(iter != cacheB.end())
{
QGlobal cur = (*iter);
@@ -123,7 +123,7 @@ void QGlobalCache::PurgeExpiredGlobals()
if(!qGlobalBucket.size())
return;
std::list<QGlobal>::iterator iter = qGlobalBucket.begin();
auto iter = qGlobalBucket.begin();
while(iter != qGlobalBucket.end())
{
QGlobal cur = (*iter);