diff options
author | Debao Zhang <dbzhang800@gmail.com> | 2012-04-23 21:56:43 -0700 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-01 10:07:56 +0200 |
commit | 054f5b7784eb0e40c24ccef7bba4170a19862881 (patch) | |
tree | eddb73332fb9c0de138d6e734f2138a945954bb3 /src/serviceframework/qserviceinterfacedescriptor.cpp | |
parent | e6145ecbf99692449e0e01ce44118bcc5ef62aba (diff) |
Using QStringLiteral instead of QLatin1Literal
The existence of QLatin1Literal is for Qt 4.x compatibility only, which
is a typedef of QLatin1String now.
Change-Id: I1be1c353689571f685cc35d1ffaa3984dac35370
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/serviceframework/qserviceinterfacedescriptor.cpp')
-rw-r--r-- | src/serviceframework/qserviceinterfacedescriptor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/serviceframework/qserviceinterfacedescriptor.cpp b/src/serviceframework/qserviceinterfacedescriptor.cpp index ba58726d..4273dc45 100644 --- a/src/serviceframework/qserviceinterfacedescriptor.cpp +++ b/src/serviceframework/qserviceinterfacedescriptor.cpp @@ -143,12 +143,12 @@ QServiceInterfaceDescriptor::QServiceInterfaceDescriptor(const QServiceInterface QServiceInterfaceDescriptor::QServiceInterfaceDescriptor(const QVariantMap &map) { d = new QServiceInterfaceDescriptorPrivate; - d->interfaceName = map.value(QLatin1Literal("interfaceName")).toString(); - d->serviceName = map.value(QLatin1Literal("serviceName")).toString(); - d->major = map.value(QLatin1Literal("major")).toInt(); - d->minor = map.value(QLatin1Literal("minor")).toInt(); - d->attributes[QServiceInterfaceDescriptor::Location] = map.value(QLatin1Literal("Location")).toString(); - d->attributes[QServiceInterfaceDescriptor::ServiceType] = map.value(QLatin1Literal("ServiceType")).toString(); + d->interfaceName = map.value(QStringLiteral("interfaceName")).toString(); + d->serviceName = map.value(QStringLiteral("serviceName")).toString(); + d->major = map.value(QStringLiteral("major")).toInt(); + d->minor = map.value(QStringLiteral("minor")).toInt(); + d->attributes[QServiceInterfaceDescriptor::Location] = map.value(QStringLiteral("Location")).toString(); + d->attributes[QServiceInterfaceDescriptor::ServiceType] = map.value(QStringLiteral("ServiceType")).toString(); } /*! |