diff options
| -rw-r--r-- | modules/ECMQtDeclareLoggingCategory.cpp.in | 4 | ||||
| -rw-r--r-- | tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp | 21 | 
2 files changed, 0 insertions, 25 deletions
| diff --git a/modules/ECMQtDeclareLoggingCategory.cpp.in b/modules/ECMQtDeclareLoggingCategory.cpp.in index 0e69ba98..46134478 100644 --- a/modules/ECMQtDeclareLoggingCategory.cpp.in +++ b/modules/ECMQtDeclareLoggingCategory.cpp.in @@ -3,9 +3,5 @@  #include "@HEADER_NAME@"  @OPEN_NAMESPACES@ -#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)  Q_LOGGING_CATEGORY(@IDENTIFIER@, "@ARG_CATEGORY_NAME@", Qt@ARG_DEFAULT_SEVERITY@Msg) -#else -Q_LOGGING_CATEGORY(@IDENTIFIER@, "@ARG_CATEGORY_NAME@") -#endif  @CLOSE_NAMESPACES@ diff --git a/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp b/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp index 79a3cd3c..f4181d11 100644 --- a/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp +++ b/tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp @@ -28,12 +28,6 @@ int main(int argc, char **argv)          qWarning("log1 category was \"%s\", expected \"log.one\"", log1().categoryName());          success = false;      } -#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) -    if (!log1().isDebugEnabled()) { -        qWarning("log1 debug messages were not enabled"); -        success = false; -    } -#else      if (log1().isDebugEnabled()) {          qWarning("log1 debug messages were enabled");          success = false; @@ -42,18 +36,11 @@ int main(int argc, char **argv)          qWarning("log1 warning messages were not enabled");          success = false;      } -#endif      if (foo::bar::log2().categoryName() != QLatin1String("log.two")) {          qWarning("log2 category was \"%s\", expected \"log.two\"", foo::bar::log2().categoryName());          success = false;      } -#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) -    if (!foo::bar::log2().isDebugEnabled()) { -        qWarning("log2 debug messages were not enabled"); -        success = false; -    } -#else      if (foo::bar::log2().isDebugEnabled()) {          qWarning("log2 debug messages were enabled");          success = false; @@ -62,18 +49,11 @@ int main(int argc, char **argv)          qWarning("log2 warning messages were not enabled");          success = false;      } -#endif      if (log3().categoryName() != QLatin1String("three")) {          qWarning("log3 category was \"%s\", expected \"three\"", log3().categoryName());          success = false;      } -#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) -    if (!log3().isDebugEnabled()) { -        qWarning("log3 debug messages were not enabled"); -        success = false; -    } -#else      if (log3().isDebugEnabled()) {          qWarning("log3 debug messages were enabled");          success = false; @@ -86,7 +66,6 @@ int main(int argc, char **argv)          qWarning("log3 critical messages were not enabled");          success = false;      } -#endif      return success ? 0 : 1;  } | 
