diff --git a/source/ps/XMB/XMBStorage.cpp b/source/ps/XMB/XMBStorage.cpp index c1044d542a..a8a24bdd50 100644 --- a/source/ps/XMB/XMBStorage.cpp +++ b/source/ps/XMB/XMBStorage.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2022 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -129,7 +129,7 @@ bool XMBStorageWriter::Load(WriteBuffer& writeBuffer, Args&&... args) void XMBStorageWriter::OutputNames(WriteBuffer& writeBuffer, const std::unordered_map& names) const { std::vector> orderedElements; - for (const std::pair& n : names) + for (const std::pair& n : names) orderedElements.emplace_back(n); std::sort(orderedElements.begin(), orderedElements.end(), [](const auto& a, const auto&b) { return a.second < b.second; }); for (const std::pair& n : orderedElements) @@ -181,7 +181,7 @@ bool XMBStorageWriter::OutputElements attr : data.m_Attributes) + for (const std::pair attr : data.m_Attributes) { writeBuffer.Append(&attr.first, 4); u32 attrLen = u32(attr.second.size())+1;