aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljscompiler_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-06-05 10:18:17 +0200
committerUlf Hermann <ulf.hermann@qt.io>2024-06-14 13:21:06 +0200
commitd8d3342daeacc7e63d61916ee94e12b766f18521 (patch)
treeba024b9713aecf2ac60a7cb5dfc05c1b52a18eb7 /src/qmlcompiler/qqmljscompiler_p.h
parentbfd01c8e71423e941b1a379da6939fc912788efc (diff)
QtQml: Fix misuse of logging categories
If we manually define the logging category function, we should really avoid the macro for declaring it. When exporting a logging category, we need to use the special export macro since we shouldn't rely on the internals of the declaration macro for placing the export. The same holds for static logging categories. Furthermore, consistently call the functions for lcQml and lcJs. We also need to fix the namespaces in qmlls now since the logging categories are decidedly not in either of the used namespaces, and the namespaces are all inside any Qt namespace. Task-number: QTBUG-67692 Change-Id: I00fdcb80379e47dd7e928260e9c1dec91f22ad4b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler_p.h')
-rw-r--r--src/qmlcompiler/qqmljscompiler_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljscompiler_p.h b/src/qmlcompiler/qqmljscompiler_p.h
index b687b5dba3..94cf71b884 100644
--- a/src/qmlcompiler/qqmljscompiler_p.h
+++ b/src/qmlcompiler/qqmljscompiler_p.h
@@ -33,7 +33,7 @@
QT_BEGIN_NAMESPACE
-Q_QMLCOMPILER_EXPORT Q_DECLARE_LOGGING_CATEGORY(lcAotCompiler);
+QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(lcAotCompiler, Q_QMLCOMPILER_EXPORT);
struct Q_QMLCOMPILER_EXPORT QQmlJSCompileError
{