summaryrefslogtreecommitdiffstats
path: root/src/render/texture/texture.cpp
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-02-07 13:25:40 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-07 10:48:47 +0000
commitc232e710fb5192db089034708f617c81d8b1bb63 (patch)
tree3f14b00d972602cd12265ef163f4e8d395718b25 /src/render/texture/texture.cpp
parentc0c53854c996aedca7bec0214be4380c5ab5f866 (diff)
build system: fix unity builds
we need to avoid polluting the global (or qt) namespace by moving the `using namespace Qt3DXXX` statements into the namespace where it's actually required. furthermore: * replace `QT_USE_NAMESPACE` with `QT_BEGIN_NAMESPACE`/`END` pair * exclude some translation units with name clashes inside anonymous namespaces Change-Id: I5301b55c6a0c7079602c759f5bde152354149880 Reviewed-by: Mike Krus <mike.krus@kdab.com> (cherry picked from commit 06bb491354489b06998306ea9de87da92314b397) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/render/texture/texture.cpp')
-rw-r--r--src/render/texture/texture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/texture/texture.cpp b/src/render/texture/texture.cpp
index 0536b6c8e..5b33b8627 100644
--- a/src/render/texture/texture.cpp
+++ b/src/render/texture/texture.cpp
@@ -13,11 +13,11 @@
QT_BEGIN_NAMESPACE
-using namespace Qt3DCore;
-
namespace Qt3DRender {
namespace Render {
+using namespace Qt3DCore;
+
Texture::Texture()
// We need backend -> frontend notifications to update the status of the texture
: BackendNode(ReadWrite)