From 3a017cc96292dbda4ca9fd2ca5ac7cf8b39cd43e Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Tue, 17 Jan 2012 08:28:18 +0100 Subject: QJS{Engine,Value}: Remove QRegExp-specific functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rationale: QRegExp regular expressions have different semantics than JavaScript RegExp. This can cause data loss and unexpected behavior. qjsvalue_cast() and fromScriptValue() can still be used to convert between QRegExp and JS RegExp. Task-number: QTBUG-23604 Change-Id: Iacf4aaea232aff9e4cecf4afa40753229bc5d643 Reviewed-by: Simon Hausmann Reviewed-by: Jędrzej Nowacki --- src/declarative/qml/v8/qjsvalue.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/declarative/qml/v8/qjsvalue.h') diff --git a/src/declarative/qml/v8/qjsvalue.h b/src/declarative/qml/v8/qjsvalue.h index 370ae53053..98d04f9155 100644 --- a/src/declarative/qml/v8/qjsvalue.h +++ b/src/declarative/qml/v8/qjsvalue.h @@ -41,7 +41,6 @@ class QVariant; class QObject; struct QMetaObject; class QDateTime; -class QRegExp; typedef QList QJSValueList; @@ -142,7 +141,6 @@ public: QT_DEPRECATED bool isFunction() const; QT_DEPRECATED qint32 toInt32() const; QT_DEPRECATED quint32 toUInt32() const; - QT_DEPRECATED QRegExp toRegExp() const; QT_DEPRECATED bool instanceOf(const QJSValue &other) const; -- cgit v1.2.3