diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-09-28 13:38:41 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-29 14:59:15 +0200 |
commit | 15a52c1a5f9cf166305c264abc01e35bad918d84 (patch) | |
tree | f0da6faa51226cc20b79be53370939482dce57f1 | |
parent | 6d953f99a74f42809d0759a8a7f76f18334dc584 (diff) |
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
-rw-r--r-- | 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 fc009a8a36..6e0c12da30 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); } |