aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4promiseobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4promiseobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4promiseobject.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4promiseobject.cpp b/src/qml/jsruntime/qv4promiseobject.cpp
index b6dba47897..400c5c23b1 100644
--- a/src/qml/jsruntime/qv4promiseobject.cpp
+++ b/src/qml/jsruntime/qv4promiseobject.cpp
@@ -42,6 +42,8 @@
#include <private/qv4symbol_p.h>
#include "qv4jscall_p.h"
+QT_BEGIN_NAMESPACE
+
using namespace QV4;
using namespace QV4::Promise;
@@ -81,7 +83,6 @@ void dropException(QV4::ExecutionEngine* e)
}
}
-QT_BEGIN_NAMESPACE
namespace QV4 {
namespace Promise {
@@ -114,7 +115,6 @@ struct ResolveThenableEvent : public QEvent
} // namespace Promise
} // namespace QV4
-QT_END_NAMESPACE
ReactionHandler::ReactionHandler(QObject *parent)
: QObject(parent)
@@ -1094,3 +1094,5 @@ ReturnedValue RejectWrapper::virtualCall(const FunctionObject *f, const Value *t
return Encode::undefined();
}
+
+QT_END_NAMESPACE