aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/complex.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-16 08:44:38 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-19 11:12:39 +0100
commit7c670b40b9fc2681260d0fdbcc275afd9bf6c2e8 (patch)
tree079b9c9db430888764b75ef5d0a514cf371265e0 /sources/shiboken6/tests/libsample/complex.cpp
parent2a37c2a1c8d6ba3ce58a699254eac9da3b1ae106 (diff)
shiboken6/test: Remove using namespace std
It causes clashes wrt std::byte/byte in CMake UNITY_BUILD (jumbo) builds. Task-number: PYSIDE-2155 Change-Id: I62184c363f85ca7aa227453f2a4d776e61ae0c70 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/libsample/complex.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/complex.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/libsample/complex.cpp b/sources/shiboken6/tests/libsample/complex.cpp
index ce2c2b7de..d06b33fbf 100644
--- a/sources/shiboken6/tests/libsample/complex.cpp
+++ b/sources/shiboken6/tests/libsample/complex.cpp
@@ -4,8 +4,6 @@
#include <iostream>
#include "complex.h"
-using namespace std;
-
Complex::Complex(double real, double imag)
: m_real(real), m_imag(imag)
{
@@ -23,7 +21,7 @@ Complex::operator+(Complex& other)
void
Complex::show()
{
- cout << "(real: " << m_real << ", imag: " << m_imag << ")";
+ std::cout << "(real: " << m_real << ", imag: " << m_imag << ")";
}