aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qjsvalue.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2012-01-31 10:03:56 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-07 11:45:56 +0100
commit54a2a4ee656134874990d5657dfe921d98c6c028 (patch)
treef672dc0eddc082338e41350a5727fc8793435353 /src/declarative/qml/v8/qjsvalue.h
parent5e42176970c05c015685194aecf954aaac5d9e1e (diff)
Mark constructor of QJSValue as deletable.
This constructor is there only to force compile time error. Change-Id: Ia2e059e0c7fa516949a166da8856543a5608d217 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsvalue.h')
-rw-r--r--src/declarative/qml/v8/qjsvalue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/v8/qjsvalue.h b/src/declarative/qml/v8/qjsvalue.h
index ebb9c8be8e..bfe0ec0951 100644
--- a/src/declarative/qml/v8/qjsvalue.h
+++ b/src/declarative/qml/v8/qjsvalue.h
@@ -123,7 +123,8 @@ public:
private:
// force compile error, prevent QJSValue(bool) to be called
- QJSValue(void *);
+
+ QJSValue(void *) Q_DECL_EQ_DELETE;
QJSValue(QJSValuePrivate*);
QJSValue(QScriptPassPointer<QJSValuePrivate>);