summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/odbc/qsql_odbc.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/plugins/sqldrivers/odbc/qsql_odbc.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/plugins/sqldrivers/odbc/qsql_odbc.cpp')
-rw-r--r--src/plugins/sqldrivers/odbc/qsql_odbc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
index 976911d4583..77137f3b3c3 100644
--- a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
+++ b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
@@ -27,7 +27,7 @@
QT_BEGIN_NAMESPACE
-static Q_LOGGING_CATEGORY(lcOdbc, "qt.sql.odbc")
+Q_STATIC_LOGGING_CATEGORY(lcOdbc, "qt.sql.odbc")
using namespace Qt::StringLiterals;