aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qhashedstring_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-04 11:41:43 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-04 07:26:49 +0200
commit0fd993ac57dd35a286fb83c97196d3d27d1d3622 (patch)
tree07501d6ffd7dcd65bbb70f3e60f61d4b112a1844 /src/declarative/qml/v8/qhashedstring_p.h
parent67347f700568607497b36c5d71e7eb89b35f363e (diff)
Compile
Change-Id: I3bc97df3cb768bcfba6581a291c6a8136cec8a92 Reviewed-on: http://codereview.qt.nokia.com/1024 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qhashedstring_p.h')
-rw-r--r--src/declarative/qml/v8/qhashedstring_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/v8/qhashedstring_p.h b/src/declarative/qml/v8/qhashedstring_p.h
index b178af7e4a..30aedeb9be 100644
--- a/src/declarative/qml/v8/qhashedstring_p.h
+++ b/src/declarative/qml/v8/qhashedstring_p.h
@@ -475,7 +475,7 @@ T &QStringHash<T>::operator[](const QHashedString &key)
{
Node *n = findNode(key);
if (n) return n->value;
- else return createNode(key)->value;
+ else return createNode(key, T())->value;
}
template<class T>
@@ -483,7 +483,7 @@ T &QStringHash<T>::operator[](const QHashedStringRef &key)
{
Node *n = findNode(key);
if (n) return n->value;
- else return createNode(key)->value;
+ else return createNode(key, T())->value;
}
inline uint qHash(const QHashedString &string)