mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Use ranged for loop
This commit is contained in:
parent
2135eba103
commit
eb79b29512
@ -29,10 +29,10 @@ namespace ESM
|
||||
|
||||
void QuickKeys::save(ESMWriter& esm) const
|
||||
{
|
||||
for (std::vector<QuickKey>::const_iterator it = mKeys.begin(); it != mKeys.end(); ++it)
|
||||
for (const QuickKey& key : mKeys)
|
||||
{
|
||||
esm.writeHNT("TYPE", it->mType);
|
||||
esm.writeHNRefId("ID__", it->mId);
|
||||
esm.writeHNT("TYPE", key.mType);
|
||||
esm.writeHNRefId("ID__", key.mId);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user