From: Kent Hansen Date: Wed, 28 Sep 2011 11:38:41 +0000 (+0200) Subject: Fix warning: QString(const char*) is deprecated X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=15a52c1a5f9cf166305c264abc01e35bad918d84;p=konrad%2Fqtdeclarative.git Fix warning: QString(const char*) is deprecated 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 Reviewed-by: Roberto Raggi Reviewed-by: Aaron Kennedy --- diff --git a/src/declarative/util/qdeclarativepropertymap.cpp b/src/declarative/util/qdeclarativepropertymap.cpp index fc009a8..6e0c12d 100644 --- a/src/declarative/util/qdeclarativepropertymap.cpp +++ b/src/declarative/util/qdeclarativepropertymap.cpp @@ -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); }