From 170996ef31cc98fc957dd63f2e2f941caf40f572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Fri, 18 May 2012 17:21:09 +0200 Subject: Simplify a type name query. QVariant::typeToName is calling QMetaType::typeName and returns the same data. Change-Id: I4028f54ef318292e27eaa0e6981ea114e6e6cd52 Reviewed-by: Roberto Raggi --- src/qml/qml/qqmlcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlcompiler.cpp') diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index 47a5672a30..c3d134f6a8 100644 --- a/src/qml/qml/qqmlcompiler.cpp +++ b/src/qml/qml/qqmlcompiler.cpp @@ -400,7 +400,7 @@ bool QQmlCompiler::testLiteralAssignment(QQmlScript::Property *prop, // otherwise, check for existence of string converter to custom type QQmlMetaType::StringConverter converter = QQmlMetaType::customStringConverter(type); if (!converter) - COMPILE_EXCEPTION(v, tr("Invalid property assignment: unsupported type \"%1\"").arg(QString::fromLatin1(QVariant::typeToName((QVariant::Type)type)))); + COMPILE_EXCEPTION(v, tr("Invalid property assignment: unsupported type \"%1\"").arg(QString::fromLatin1(QMetaType::typeName(type)))); } break; } -- cgit v1.2.3