Appended references to const auto types in loop to prevent copying.

Suggested by Apple Clang.
This commit is contained in:
23rd
2021-09-08 13:53:54 +03:00
committed by John Preston
parent baea762832
commit 900a7d0b2b
67 changed files with 153 additions and 153 deletions
@@ -268,7 +268,7 @@ std::vector<DataError> DeserializeErrors(bytes::const_span json) {
}
auto array = document.array();
auto result = std::vector<DataError>();
for (const auto &error : array) {
for (const auto error : array) {
if (!error.isObject()) {
LOG(("API Error: Not an object inside errors JSON."));
continue;