aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/onlycopy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/onlycopy.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/onlycopy.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/sources/shiboken6/tests/libsample/onlycopy.cpp b/sources/shiboken6/tests/libsample/onlycopy.cpp
index 6fa4ad064..5ae746121 100644
--- a/sources/shiboken6/tests/libsample/onlycopy.cpp
+++ b/sources/shiboken6/tests/libsample/onlycopy.cpp
@@ -13,7 +13,6 @@ public:
OnlyCopy::OnlyCopy(int value) : d(new OnlyCopyPrivate(value))
{
-
}
OnlyCopy::OnlyCopy(OnlyCopyPrivate *dIn) : d(dIn)
@@ -25,12 +24,11 @@ OnlyCopy::~OnlyCopy()
delete d;
}
-OnlyCopy::OnlyCopy(const OnlyCopy& other) : d(new OnlyCopyPrivate(other.value()))
+OnlyCopy::OnlyCopy(const OnlyCopy &other) : d(new OnlyCopyPrivate(other.value()))
{
}
-OnlyCopy&
-OnlyCopy::operator=(const OnlyCopy& other)
+OnlyCopy &OnlyCopy::operator=(const OnlyCopy &other)
{
d->value = other.d->value;
return *this;
@@ -41,15 +39,12 @@ int OnlyCopy::value() const
return d->value;
}
-OnlyCopy
-FriendOfOnlyCopy::createOnlyCopy(int value)
+OnlyCopy FriendOfOnlyCopy::createOnlyCopy(int value)
{
-
return OnlyCopy(value);
}
-std::list<OnlyCopy>
-FriendOfOnlyCopy::createListOfOnlyCopy(int quantity)
+std::list<OnlyCopy> FriendOfOnlyCopy::createListOfOnlyCopy(int quantity)
{
std::list<OnlyCopy> list;
for (int i = 0; i < quantity; ++i)