mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user