diff options
author | Jędrzej Nowacki <jedrzej.nowacki@nokia.com> | 2011-10-06 13:31:49 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-24 12:36:29 +0200 |
commit | 935eb45f340193e035680ebe0f346994a85803d3 (patch) | |
tree | 0feb8ee85dae57cb1e670aec678181a5e0f20e05 /src/declarative/qml/v8/qjsconverter_p.h | |
parent | 9539553f02f22058c50361c560872b2f82ae3700 (diff) |
Return v8::Local instead v8::Handle in some functions.
Lets try to keep information about original handle type if possible.
Change-Id: I76484c688ee5605cc99687aa4a17c6ca5d1a3891
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsconverter_p.h')
-rw-r--r-- | src/declarative/qml/v8/qjsconverter_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/v8/qjsconverter_p.h b/src/declarative/qml/v8/qjsconverter_p.h index 9ec7aaf365..4b17fd6d52 100644 --- a/src/declarative/qml/v8/qjsconverter_p.h +++ b/src/declarative/qml/v8/qjsconverter_p.h @@ -67,13 +67,13 @@ public: // Converts a QRegExp to a JS RegExp. // The conversion is not 100% exact since ECMA regexp and QRegExp // have different semantics/flags, but we try to do our best. - static inline v8::Handle<v8::RegExp> toRegExp(const QRegExp &re); + static inline v8::Local<v8::RegExp> toRegExp(const QRegExp &re); // Converts a QStringList to JS. // The result is a new Array object with length equal to the length // of the QStringList, and the elements being the QStringList's // elements converted to JS Strings. - static inline v8::Handle<v8::Array> toStringList(const QStringList &lst); + static inline v8::Local<v8::Array> toStringList(const QStringList &lst); // Converts a JS Array object to a QStringList. // The result is a QStringList with length equal to the length @@ -85,7 +85,7 @@ public: static inline QDateTime toDateTime(v8::Handle<v8::Date> jsDate); // Converts a QDateTime to a JS Date. - static inline v8::Handle<v8::Value> toDateTime(const QDateTime &dt); + static inline v8::Local<v8::Value> toDateTime(const QDateTime &dt); }; QT_END_NAMESPACE |