From 15a52c1a5f9cf166305c264abc01e35bad918d84 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 28 Sep 2011 13:38:41 +0200 Subject: [PATCH] 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 --- src/declarative/util/qdeclarativepropertymap.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } -- 1.7.2.5