From 06e7ad49fe1773de0949459538f7349c96bb66ac 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: [PATCH] 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. Change-Id: I6bc45bc9a57fd8429cf033aa118eebff0fcfc4a5 Reviewed-by: Tor Arne Vestbø (cherry picked from commit 7a37114af92fcaa6f8ed2eb17a4632b4880c8bbe) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/io/qloggingcategory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp index e98a12ac464..10763dd65a9 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.