summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-01-02 13:52:57 +0100
committerKai Köhne <kai.koehne@qt.io>2023-01-02 18:06:29 +0100
commit7a37114af92fcaa6f8ed2eb17a4632b4880c8bbe (patch)
tree0879dfd15d16cadcaf9be3aa79e257aa9d18bb22 /src/corelib/io
parent314a4d121f55a7a6cd8335c9953d105574efab76 (diff)
Doc: Fix snippet for Q_DECLARE_EXPORTED_CATEGORY
The name argument must be a C++ variable name, not a string. Pick-to: 6.5 Change-Id: I6bc45bc9a57fd8429cf033aa118eebff0fcfc4a5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qloggingcategory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp
index e98a12ac46..10763dd65a 100644
--- a/src/corelib/io/qloggingcategory.cpp
+++ b/src/corelib/io/qloggingcategory.cpp
@@ -626,7 +626,7 @@ void QLoggingCategory::setFilterRules(const QString &rules)
For example:
\code
- Q_DECLARE_EXPORTED_LOGGING_CATEGORY("lib.core", LIB_EXPORT_MACRO)
+ Q_DECLARE_EXPORTED_LOGGING_CATEGORY(lcCore, LIB_EXPORT_MACRO)
\endcode
This macro must be used outside of a class or function.