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

@ -1 +1 @@
Subproject commit 5cf5976b1874cb39aabcedf30b2b26b5dbd407a6
Subproject commit f905c3712d56ea29833ac363ffefb3b1f8c341c9