summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorLuca Di Sera <luca.disera@qt.io>2022-09-09 15:58:42 +0200
committerLuca Di Sera <luca.disera@qt.io>2022-09-13 11:35:35 +0200
commitb8394f8469db3e370b19c5e1cc5ee2047d516533 (patch)
tree5ca09908ca760b1e65e3007f7b866d0d60334c29 /src/qdoc/cppcodeparser.cpp
parentb1606e955548c620f2c810a9a34cd6fc91e245ae (diff)
downloadqttools-b8394f8469db3e370b19c5e1cc5ee2047d516533.tar.gz
QDoc: Remove deprecated usage of _qs literal operator
The usage was recently added but, Qt 6.8 onward, deprecates the usage of "_qs" in favor of the "_s" literal operator in the "Qt::Literals::StringLiterals" namespace. A "using" for the namespaces was added to gain access to the non-deprecated literal operators and the usage of "_qs" was converted to "_s". Change-Id: I43ad074ee7fdd1d50ab218cc74b57d983edca8da Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index feb393c19..a0519fc8f 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -24,6 +24,8 @@
#include <algorithm>
+using namespace Qt::Literals::StringLiterals;
+
QT_BEGIN_NAMESPACE
/* qmake ignore Q_OBJECT */
@@ -660,7 +662,7 @@ void CppCodeParser::processMetaCommand(const Doc &doc, const QString &command,
// internal representations an way to enable "Attribution
// Pages" is performed before looking at the issue again.
if (!node->isTextPageNode()) {
- doc.location().warning(u"Command '\\%1' is only meaningful in '\\%2'"_qs.arg(COMMAND_ATTRIBUTION, COMMAND_PAGE));
+ doc.location().warning(u"Command '\\%1' is only meaningful in '\\%2'"_s.arg(COMMAND_ATTRIBUTION, COMMAND_PAGE));
} else { static_cast<PageNode*>(node)->markAttribution(); }
}
}