aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qjsconverter_impl_p.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2011-10-06 13:31:49 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-24 12:36:29 +0200
commit935eb45f340193e035680ebe0f346994a85803d3 (patch)
tree0feb8ee85dae57cb1e670aec678181a5e0f20e05 /src/declarative/qml/v8/qjsconverter_impl_p.h
parent9539553f02f22058c50361c560872b2f82ae3700 (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_impl_p.h')
-rw-r--r--src/declarative/qml/v8/qjsconverter_impl_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/qml/v8/qjsconverter_impl_p.h b/src/declarative/qml/v8/qjsconverter_impl_p.h
index 2272721d43..4366ed8b20 100644
--- a/src/declarative/qml/v8/qjsconverter_impl_p.h
+++ b/src/declarative/qml/v8/qjsconverter_impl_p.h
@@ -174,7 +174,7 @@ QRegExp QJSConverter::toRegExp(v8::Handle<v8::RegExp> jsRegExp)
// 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.
-v8::Handle<v8::RegExp> QJSConverter::toRegExp(const QRegExp &re)
+v8::Local<v8::RegExp> QJSConverter::toRegExp(const QRegExp &re)
{
// Convert the pattern to a ECMAScript pattern.
QString pattern = qt_regexp_toCanonical(re.pattern(), re.patternSyntax());
@@ -224,9 +224,9 @@ v8::Handle<v8::RegExp> QJSConverter::toRegExp(const QRegExp &re)
// 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.
-v8::Handle<v8::Array> QJSConverter::toStringList(const QStringList &lst)
+v8::Local<v8::Array> QJSConverter::toStringList(const QStringList &lst)
{
- v8::Handle<v8::Array> result = v8::Array::New(lst.size());
+ v8::Local<v8::Array> result = v8::Array::New(lst.size());
for (int i = 0; i < lst.size(); ++i)
result->Set(i, toString(lst.at(i)));
return result;
@@ -253,7 +253,7 @@ QDateTime QJSConverter::toDateTime(v8::Handle<v8::Date> jsDate)
}
// Converts a QDateTime to a JS Date.
-v8::Handle<v8::Value> QJSConverter::toDateTime(const QDateTime &dt)
+v8::Local<v8::Value> QJSConverter::toDateTime(const QDateTime &dt)
{
double date;
if (!dt.isValid())