2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix build in Xcode.

This commit is contained in:
John Preston
2019-04-30 14:59:11 +04:00
parent fbfd3ddd68
commit 78d3bdfe3a
2 changed files with 3 additions and 2 deletions

View File

@@ -149,7 +149,8 @@ void Animation::parse(const QByteArray &content) {
_treeBlueprint = std::make_unique<BMBase>();
const auto blueprint = _treeBlueprint.get();
const auto layers = root.value(QLatin1String("layers")).toArray();
for (const auto &entry : ranges::view::reverse(layers)) {
for (auto i = layers.end(); i != layers.begin();) {
const auto &entry = *(--i);
if (const auto layer = BMLayer::construct(entry.toObject())) {
layer->setParent(blueprint);