Sine Striker
2023-12-04 41a4103ffcce0efb6d532a15d307ab98177c997e
src/core/qwkcoreglobal_p.h
@@ -3,6 +3,7 @@
#include <QtCore/QEvent>
#include <QtCore/QLoggingCategory>
#include <QtGui/QtEvents>
#include <QWKCore/qwkcoreglobal.h>
@@ -21,16 +22,7 @@
#define QWK_WARNING  qCWarning(qWindowKitLog)
#define QWK_CRITICAL qCCritical(qWindowKitLog)
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
#  define QWK_FATAL qCFatal(qWindowKitLog)
#endif
// MOC can't handle C++ attributes before 5.15.
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
#  define Q_NODISCARD    [[nodiscard]]
#  define Q_MAYBE_UNUSED [[maybe_unused]]
#else
#  define Q_NODISCARD
#  define Q_MAYBE_UNUSED
#  define QWK_FATAL  qCFatal(qWindowKitLog)
#endif
#endif // QWKCOREGLOBAL_P_H