From: Jędrzej Nowacki Date: Fri, 18 May 2012 15:21:09 +0000 (+0200) Subject: Simplify a type name query. X-Git-Tag: 071012131707~348 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=170996ef31cc98fc957dd63f2e2f941caf40f572;p=profile%2Fivi%2Fqtdeclarative.git Simplify a type name query. QVariant::typeToName is calling QMetaType::typeName and returns the same data. Change-Id: I4028f54ef318292e27eaa0e6981ea114e6e6cd52 Reviewed-by: Roberto Raggi --- diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index 47a5672..c3d134f 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; }