refactor(Core): apply clang-tidy modernize-loop-convert (#3822)
This commit is contained in:
parent
0b7b36f20c
commit
0b8ec1f6ee
16 changed files with 125 additions and 130 deletions
|
|
@ -63,9 +63,9 @@ void ExtractGameobjectModels()
|
|||
return;
|
||||
}
|
||||
|
||||
for (DBCFile::Iterator it = dbc.begin(); it != dbc.end(); ++it)
|
||||
for (const auto & it : dbc)
|
||||
{
|
||||
path = it->getString(1);
|
||||
path = it.getString(1);
|
||||
|
||||
if (path.length() < 4)
|
||||
continue;
|
||||
|
|
@ -97,7 +97,7 @@ void ExtractGameobjectModels()
|
|||
|
||||
if (result)
|
||||
{
|
||||
uint32 displayId = it->getUInt(0);
|
||||
uint32 displayId = it.getUInt(0);
|
||||
uint32 path_length = strlen(name);
|
||||
fwrite(&displayId, sizeof(uint32), 1, model_list);
|
||||
fwrite(&path_length, sizeof(uint32), 1, model_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue