aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/functions.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/functions.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/functions.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/functions.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/sources/shiboken6/tests/libsample/functions.cpp b/sources/shiboken6/tests/libsample/functions.cpp
index d96a58abd..210daec7c 100644
--- a/sources/shiboken6/tests/libsample/functions.cpp
+++ b/sources/shiboken6/tests/libsample/functions.cpp
@@ -7,12 +7,10 @@
#include <iostream>
#include <numeric>
-using namespace std;
-
void
printSomething()
{
- cout << __FUNCTION__ << endl;
+ std::cout << __FUNCTION__ << std::endl;
}
int
@@ -227,7 +225,7 @@ void ClassWithFunctionPointer::doNothing(void *operand)
(void) operand;
}
-string addStdStrings(const std::string &s1, const std::string &s2)
+std::string addStdStrings(const std::string &s1, const std::string &s2)
{
return s1 + s2;
}
@@ -239,5 +237,5 @@ std::wstring addStdWStrings(const std::wstring &s1, const std::wstring &s2)
void testNullPtrT(std::nullptr_t)
{
- cout << __FUNCTION__ << '\n';
+ std::cout << __FUNCTION__ << '\n';
}