aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-18 09:20:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-19 08:14:56 +0100
commit3b2e7bf03b656b38ba7b24acf7ed38de555635f1 (patch)
tree0a7c9ae7ef73f1fb7d186e4470330b1668477604 /src/qml/jsapi
parent44ca5f1be03420978cc8d5468c4c40dcd5174a06 (diff)
Use Q_ASSERT instead of assert
Change-Id: I6185b59a7dfd6977ce82581ab4385e07d78f13f6 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r--src/qml/jsapi/qjsvalue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsapi/qjsvalue.cpp b/src/qml/jsapi/qjsvalue.cpp
index 5fba40edac..b17ac17752 100644
--- a/src/qml/jsapi/qjsvalue.cpp
+++ b/src/qml/jsapi/qjsvalue.cpp
@@ -522,7 +522,7 @@ QJSValue QJSValue::call(const QJSValueList &args)
return QJSValue();
ExecutionEngine *engine = d->engine;
- assert(engine);
+ Q_ASSERT(engine);
Scope scope(engine);
ScopedCallData callData(scope, args.length());
@@ -571,7 +571,7 @@ QJSValue QJSValue::callWithInstance(const QJSValue &instance, const QJSValueList
return QJSValue();
ExecutionEngine *engine = d->engine;
- assert(engine);
+ Q_ASSERT(engine);
Scope scope(engine);
if (!instance.d->checkEngine(engine)) {
@@ -623,7 +623,7 @@ QJSValue QJSValue::callAsConstructor(const QJSValueList &args)
return QJSValue();
ExecutionEngine *engine = d->engine;
- assert(engine);
+ Q_ASSERT(engine);
Scope scope(engine);
ScopedCallData callData(scope, args.size());