Fix warning: QString(const char*) is deprecated
authorKent Hansen <kent.hansen@nokia.com>
Wed, 28 Sep 2011 11:38:41 +0000 (13:38 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Sep 2011 12:59:15 +0000 (14:59 +0200)
Use fromUtf8() like the other functions in this class do.

Change-Id: If25c8e8dc2562f68774002bfd11719227cbb4713
Reviewed-on: http://codereview.qt-project.org/5715
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>

src/declarative/util/qdeclarativepropertymap.cpp

index fc009a8..6e0c12d 100644 (file)
@@ -108,7 +108,7 @@ void QDeclarativePropertyMapMetaObject::propertyCreated(int, QMetaPropertyBuilde
 
 int QDeclarativePropertyMapMetaObject::createProperty(const char *name, const char *value)
 {
-    if (!priv->validKeyName(name))
+    if (!priv->validKeyName(QString::fromUtf8(name)))
         return -1;
     return QDeclarativeOpenMetaObject::createProperty(name, value);
 }