aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4promiseobject.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-04-29 09:09:00 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-04-29 09:47:43 +0200
commitc16043bb16593fad637979f6e267da589198ad24 (patch)
tree09ecaae4ed1b7bdbf714e9df5c1a7a83f4b500bb /src/qml/jsruntime/qv4promiseobject.cpp
parent3e9f84a0ac9b11f68ff6981af556786f54026b65 (diff)
qv4promiseobject.cpp: Fix namespaces
All of the file should be in the Qt namespace. Change-Id: I9f5a56dbc9771bb8d7148db6ebd4ed3e8f724e08 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
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