diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-22 01:15:25 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-22 01:27:48 (GMT) |
commit | 646c768dda33fdce846e50a34f83b98c87541fb8 (patch) | |
tree | 52ce64416a2fd9376d93334d9b7732bfd9c39669 | |
parent | 9487cbbeba7654200339c1850503b494b46158d1 (diff) | |
download | Qt-646c768dda33fdce846e50a34f83b98c87541fb8.zip Qt-646c768dda33fdce846e50a34f83b98c87541fb8.tar.gz Qt-646c768dda33fdce846e50a34f83b98c87541fb8.tar.bz2 |
Change return type to match value().
-rw-r--r-- | src/declarative/util/qdeclarativepropertymap.cpp | 2 | ||||
-rw-r--r-- | src/declarative/util/qdeclarativepropertymap.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qdeclarativepropertymap.cpp b/src/declarative/util/qdeclarativepropertymap.cpp index c8161a7..919727f 100644 --- a/src/declarative/util/qdeclarativepropertymap.cpp +++ b/src/declarative/util/qdeclarativepropertymap.cpp @@ -265,7 +265,7 @@ QVariant &QDeclarativePropertyMap::operator[](const QString &key) Same as value(). */ -const QVariant QDeclarativePropertyMap::operator[](const QString &key) const +QVariant QDeclarativePropertyMap::operator[](const QString &key) const { return value(key); } diff --git a/src/declarative/util/qdeclarativepropertymap.h b/src/declarative/util/qdeclarativepropertymap.h index e0b7ce3..1b6594b 100644 --- a/src/declarative/util/qdeclarativepropertymap.h +++ b/src/declarative/util/qdeclarativepropertymap.h @@ -73,7 +73,7 @@ public: bool contains(const QString &key) const; QVariant &operator[](const QString &key); - const QVariant operator[](const QString &key) const; + QVariant operator[](const QString &key) const; Q_SIGNALS: void valueChanged(const QString &key, const QVariant &value); |