summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusreply.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-04-08 17:09:06 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-12 11:48:08 +0200
commite9e43bff2933937eda873ed549e27f909a3b00b7 (patch)
tree1097e7abc4a77977466e239aaf724cf2149a54bb /src/dbus/qdbusreply.cpp
parent6e77d2a10c2af26f79b3bf89e8a9d005cf2b6512 (diff)
QtDBus: use _L1 for for creating Latin-1 string literals
Task-number: QTBUG-98434 Change-Id: I99d9a82c77d00124ea8953b98406959f1bf9413a Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/dbus/qdbusreply.cpp')
-rw-r--r--src/dbus/qdbusreply.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dbus/qdbusreply.cpp b/src/dbus/qdbusreply.cpp
index 1a3278ff52..1e05f54b8f 100644
--- a/src/dbus/qdbusreply.cpp
+++ b/src/dbus/qdbusreply.cpp
@@ -46,6 +46,8 @@
QT_BEGIN_NAMESPACE
+using namespace Qt::StringLiterals;
+
/*!
\class QDBusReply
\inmodule QtDBus
@@ -235,15 +237,13 @@ void qDBusReplyFill(const QDBusMessage &reply, QDBusError &error, QVariant &data
receivedSignature = "<empty signature>";
QString errorMsg;
if (receivedType) {
- errorMsg = QLatin1String("Unexpected reply signature: got \"%1\" (%4), "
- "expected \"%2\" (%3)")
+ errorMsg = "Unexpected reply signature: got \"%1\" (%4), expected \"%2\" (%3)"_L1
.arg(QLatin1String(receivedSignature),
QLatin1String(expectedSignature),
QLatin1String(data.typeName()),
QLatin1String(receivedType));
} else {
- errorMsg = QLatin1String("Unexpected reply signature: got \"%1\", "
- "expected \"%2\" (%3)")
+ errorMsg = "Unexpected reply signature: got \"%1\", expected \"%2\" (%3)"_L1
.arg(QLatin1String(receivedSignature),
QLatin1String(expectedSignature),
QLatin1String(data.typeName()));