diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-21 21:23:01 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-22 06:21:29 +0200 |
commit | 70f8279338ee9f4df39e45403f9357359113ec0d (patch) | |
tree | 5853484d443a2ae37936ece9317f6e66e460fe03 /src/qml/qml/ftw/qhashedstring_p.h | |
parent | 3089c2c0fe681f2caec31326748ca9e03a7b32db (diff) |
Get rid of v8::String::(Ascii)Value
Change-Id: I792a94590efbec852620d101b620b263a90e1d54
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/ftw/qhashedstring_p.h')
-rw-r--r-- | src/qml/qml/ftw/qhashedstring_p.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/qml/qml/ftw/qhashedstring_p.h b/src/qml/qml/ftw/qhashedstring_p.h index cce49709a7..9393e1fed0 100644 --- a/src/qml/qml/ftw/qhashedstring_p.h +++ b/src/qml/qml/ftw/qhashedstring_p.h @@ -1182,16 +1182,7 @@ v8::Handle<v8::String> QHashedV8String::string() const QString QHashedV8String::toString() const { - QString result; - result.reserve(m_hash.length); - - v8::String::Value value(m_string); - Q_ASSERT(*value != NULL); - uint16_t* string = *value; - for (int i = 0; i < m_hash.length; ++i) - result.append(string[i]); - - return result; + return m_string->v4Value().toQString(); } QHashedStringRef::QHashedStringRef() |