More correct assertion in QHasheV4String
authorLars Knoll <lars.knoll@digia.com>
Tue, 25 Jun 2013 19:22:47 +0000 (21:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Jun 2013 12:55:52 +0000 (14:55 +0200)
Change-Id: Id34dcae9c7e52fe0262b4d9480a7307a393226ee
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/ftw/qhashedstring_p.h

index 8af9e3f..ca95839 100644 (file)
@@ -1135,7 +1135,7 @@ QHashedV4String::QHashedV4String()
 QHashedV4String::QHashedV4String(const QV4::Value &s)
     : m_string(s)
 {
-    Q_ASSERT(!s.toQString().isEmpty());
+    Q_ASSERT(s.isString());
 }
 
 QHashedV4String::QHashedV4String(const QHashedV4String &string)