summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-11-11 12:42:52 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-11-11 12:49:10 (GMT)
commit0ea518de58cfb91f8aaea80c8297a677c527824a (patch)
treec5426535e4a1f269797b95806a12c24890f12163 /tests
parent001d2291bb887139597be5d42753227267f49394 (diff)
downloadQt-0ea518de58cfb91f8aaea80c8297a677c527824a.zip
Qt-0ea518de58cfb91f8aaea80c8297a677c527824a.tar.gz
Qt-0ea518de58cfb91f8aaea80c8297a677c527824a.tar.bz2
Fixing warnings in QScopedPointer test case
Diffstat (limited to 'tests')
-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;