1
0
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:
elsid 2023-03-21 20:45:49 +01:00
parent 2135eba103
commit eb79b29512
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -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);
}
}