summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptvalue_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-03-01 10:11:30 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-03-01 14:37:26 (GMT)
commit9d38d8005876d808f499591d1427b227f4b9764f (patch)
treea8a7119f30c762be04df15e537507fa1351d9644 /src/script/api/qscriptvalue_p.h
parent2fa8c8d4ddc162297a05f2908e0d86eb2c738153 (diff)
downloadQt-9d38d8005876d808f499591d1427b227f4b9764f.zip
Qt-9d38d8005876d808f499591d1427b227f4b9764f.tar.gz
Qt-9d38d8005876d808f499591d1427b227f4b9764f.tar.bz2
Avoid conversion between JavaScriptCore String type and QString
Use JSC::UString internally. Only when the public API demands it should a JSC::UString be converted to a QString. Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'src/script/api/qscriptvalue_p.h')
-rw-r--r--src/script/api/qscriptvalue_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h
index 77b7330..089b923 100644
--- a/src/script/api/qscriptvalue_p.h
+++ b/src/script/api/qscriptvalue_p.h
@@ -88,8 +88,8 @@ public:
inline JSC::JSValue property(const JSC::Identifier &id, int resolveMode) const;
inline JSC::JSValue property(quint32 index, int resolveMode) const;
- inline JSC::JSValue property(const QString &, int resolveMode) const;
- inline void setProperty(const QString &name, const JSC::JSValue &value,
+ inline JSC::JSValue property(const JSC::UString &, int resolveMode) const;
+ inline void setProperty(const JSC::UString &name, const JSC::JSValue &value,
const QScriptValue::PropertyFlags &flags);
inline void setProperty(const JSC::Identifier &id, const JSC::JSValue &value,
const QScriptValue::PropertyFlags &flags);