Skip to content

armgit / krita

Public Imported from GitHub
0

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: use nullptr instead of 0

Halla Remptd5f6e451eb61
diff --git a/plugins/dockers/layerdocker/NodeDelegate.cpp b/plugins/dockers/layerdocker/NodeDelegate.cpp
index b0c31a3270..d333e9036d 100644
--- a/plugins/dockers/layerdocker/NodeDelegate.cpp
+++ b/plugins/dockers/layerdocker/NodeDelegate.cpp
@@ -473,7 +473,7 @@ QList<OptionalProperty> NodeDelegate::Private::rightmostProperties(const KisBase
while (i.hasPrevious()) {
OptionalProperty val = i.previous();
- int emptyIndex = list.lastIndexOf(0);
+ int emptyIndex = list.lastIndexOf(nullptr);
if (emptyIndex < 0) break;
list[emptyIndex] = val;