From 7a37114af92fcaa6f8ed2eb17a4632b4880c8bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Mon, 2 Jan 2023 13:52:57 +0100 Subject: Doc: Fix snippet for Q_DECLARE_EXPORTED_CATEGORY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The name argument must be a C++ variable name, not a string. Pick-to: 6.5 Change-Id: I6bc45bc9a57fd8429cf033aa118eebff0fcfc4a5 Reviewed-by: Tor Arne Vestbø --- src/corelib/io/qloggingcategory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/io') 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. -- cgit v1.2.3