Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Qt6: Fix building KoShapeReorderCommand
Halla Remptbc14230e23e5
diff --git a/libs/flake/commands/KoShapeReorderCommand.cpp b/libs/flake/commands/KoShapeReorderCommand.cppindex 770c06b3cb..5183c64b6d 100644--- a/libs/flake/commands/KoShapeReorderCommand.cpp+++ b/libs/flake/commands/KoShapeReorderCommand.cpp@@ -163,9 +163,9 @@ KoShapeReorderCommand *KoShapeReorderCommand::createCommand(const QList<KoShape*}QMap<KoShape*, QList<KoShape*> >::iterator newIt(newOrder.begin());- for (; newIt!= newOrder.end(); ++newIt) {+ for (; newIt != newOrder.end(); ++newIt) {QList<KoShape*> order(newIt.value());- order.removeAll(0);+ order.removeAll(nullptr);int index = -KoShape::maxZIndex - 1; // set minimum zIndexint pos = 0;for (; pos < order.size(); ++pos) {