summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qscopedpointer/tst_qscopedpointer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qscopedpointer/tst_qscopedpointer.cpp b/tests/auto/qscopedpointer/tst_qscopedpointer.cpp
index ddd5579..b99760e 100644
--- a/tests/auto/qscopedpointer/tst_qscopedpointer.cpp
+++ b/tests/auto/qscopedpointer/tst_qscopedpointer.cpp
@@ -321,7 +321,7 @@ struct RefCounted
instanceCount.ref();
}
- RefCounted(RefCounted const &other)
+ RefCounted(RefCounted const &)
: ref(0)
{
instanceCount.ref();
@@ -335,6 +335,7 @@ struct RefCounted
RefCounted &operator=(RefCounted const &)
{
+ return *this;
}
QAtomicInt ref;