From 7a4c1ad11bace12c2070e5236c9d529d7d21533d Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed <fawzi.mohamed@digia.com> Date: Mon, 3 Mar 2014 15:14:44 +0100 Subject: [PATCH] utils: fix logging.h Fix incorrect #if depending on the Qt version. Change-Id: I4212c841efc6812c29dd64ff88a63b22c6291c78 Reviewed-by: Kai Koehne <kai.koehne@digia.com> --- src/libs/utils/logging.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/utils/logging.h b/src/libs/utils/logging.h index b4373153b16..825abff5901 100644 --- a/src/libs/utils/logging.h +++ b/src/libs/utils/logging.h @@ -67,7 +67,7 @@ private: return category; \ } -# ifdef QT_VERSION > 0x050000 +#if QT_VERSION > 0x050000 // // Qt 5.0, 5.1 do have already support for categories in QMessageLogger @@ -106,7 +106,7 @@ private: #include <QLoggingCategory> -#ifdef QT_VERSION < 0x053000 +#if QT_VERSION < 0x053000 // printf style for qCDebug was only added in Qt 5.3 @@ -125,5 +125,5 @@ private: QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO, category().categoryName()).critical(__VA_ARGS__) #endif // QT_VERSION < 0x053000 - +#endif // QT_VERSION < 0x052000 #endif // LOGGING_H -- GitLab