summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqldatabase.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2024-06-03 09:00:18 +0200
committerUlf Hermann <[email protected]>2024-06-05 11:36:49 +0200
commit374a2b0c5fe8b4a6c52f39a20075f1282ce76b96 (patch)
tree78ca510bebac98aedf6b75c1b1db4894e62b1cf3 /src/sql/kernel/qsqldatabase.cpp
parentf6bb8f832442a2e70b3d4718fb06807cfe98511b (diff)
Logging: Add a macro for static logging category
Since name clashes between logging categories are so common, having a way to explicitly avoid them is important. So far, we are depending on internals of Q_LOGGING_CATEGORY to place the "static" in the right location. That's less than ideal. Task-number: QTBUG-67692 Change-Id: Ifeda5297d1d1220a57118b3bf7c7310e4ddd4f93 Reviewed-by: Tor Arne Vestbø <[email protected]> Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
-rw-r--r--src/sql/kernel/qsqldatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp
index c25fabf0a4b..e44533291a3 100644
--- a/src/sql/kernel/qsqldatabase.cpp
+++ b/src/sql/kernel/qsqldatabase.cpp
@@ -18,7 +18,7 @@
QT_BEGIN_NAMESPACE
-static Q_LOGGING_CATEGORY(lcSqlDb, "qt.sql.qsqldatabase")
+Q_STATIC_LOGGING_CATEGORY(lcSqlDb, "qt.sql.qsqldatabase")
using namespace Qt::StringLiterals;