summaryrefslogtreecommitdiffstats
path: root/src/interfaceframework/qifabstractfeature.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2023-05-03 18:50:57 +0200
committerDominik Holland <dominik.holland@qt.io>2023-05-09 17:36:00 +0000
commit3b217d39211f03e47c9849750e2290612f108cda (patch)
tree3292472682df995a37d9fe7e10c64052aca73eb5 /src/interfaceframework/qifabstractfeature.cpp
parentdd397cd60c9f65a79e1560d4ab59af57168ee856 (diff)
Start using the new literal operator from Qt::StringLiterals
Change-Id: I4f5d723d01dc8e8e410920f96e6a445b194ac389 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/qifabstractfeature.cpp')
-rw-r--r--src/interfaceframework/qifabstractfeature.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaceframework/qifabstractfeature.cpp b/src/interfaceframework/qifabstractfeature.cpp
index 19ac815c..5e16273a 100644
--- a/src/interfaceframework/qifabstractfeature.cpp
+++ b/src/interfaceframework/qifabstractfeature.cpp
@@ -16,6 +16,8 @@
#include <QDebug>
#include <QMetaEnum>
+using namespace Qt::StringLiterals;
+
QT_BEGIN_NAMESPACE
QIfAbstractFeaturePrivate::QIfAbstractFeaturePrivate(const QString &interfaceName, QIfAbstractFeature *parent)
@@ -534,7 +536,7 @@ void QIfAbstractFeature::setError(QIfAbstractFeature::Error error, const QString
{
Q_D(QIfAbstractFeature);
d->m_error = error;
- d->m_errorMessage = errorText() + QStringLiteral(" ") + message;
+ d->m_errorMessage = errorText() + u" "_s + message;
if (d->m_error == QIfAbstractFeature::NoError)
d->m_errorMessage.clear();
emit errorChanged(d->m_error, d->m_errorMessage);