summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusreply.cpp
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2012-05-21 10:13:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-28 03:30:21 +0200
commitdb06953ca117f7d9c5083ea9779d86da4c391399 (patch)
treea988935514b0c68c01843c435911167494fa1bc7 /src/dbus/qdbusreply.cpp
parentcebcfcc66bac6681c9eac1683606a72cba575eda (diff)
Replace QVariant::typeToName usage by QMetaType::typeName call.
Type information is kept in QMetaType class. QVariant is delegating operations, so it is better to use QMetaType directly. Change-Id: I91209fa1c9dc4303d6bd47c96824d3cd64ce5291 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbusreply.cpp')
-rw-r--r--src/dbus/qdbusreply.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusreply.cpp b/src/dbus/qdbusreply.cpp
index 9875329a26..9e3c28a16e 100644
--- a/src/dbus/qdbusreply.cpp
+++ b/src/dbus/qdbusreply.cpp
@@ -215,7 +215,7 @@ void qDBusReplyFill(const QDBusMessage &reply, QDBusError &error, QVariant &data
} else {
// not an argument and doesn't match?
int type = reply.arguments().at(0).userType();
- receivedType = QVariant::typeToName(QVariant::Type(type));
+ receivedType = QMetaType::typeName(type);
receivedSignature = QDBusMetaType::typeToSignature(type);
}
}