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++
Don't redefine Q_ASSERT when building with Qt6
Halla Rempt7ec2e94b0eec
diff --git a/libs/global/kis_debug.h b/libs/global/kis_debug.hindex b40953e42d..2a52b78e23 100644--- a/libs/global/kis_debug.h+++ b/libs/global/kis_debug.h@@ -149,11 +149,13 @@ KRITAGLOBAL_EXPORT QString kisBacktrace();*/#define ppVar( var ) #var << "=" << (var)++#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))# ifndef QT_NO_DEBUG# undef Q_ASSERT# define Q_ASSERT(cond) if(!(cond)) { errKrita.noquote() << kisBacktrace(); qt_assert(#cond,__FILE__,__LINE__); } qt_noop()# endif-+#endif#ifdef __GNUC__KRITAGLOBAL_EXPORT QString __methodName(const char *prettyFunction);