summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-11-11 13:42:52 +0100
committerJoão Abecasis <joao@abecasis.name>2009-11-11 13:49:10 +0100
commit0ea518de58cfb91f8aaea80c8297a677c527824a (patch)
treec5426535e4a1f269797b95806a12c24890f12163 /tests
parent001d2291bb887139597be5d42753227267f49394 (diff)
downloadqt4-tools-0ea518de58cfb91f8aaea80c8297a677c527824a.tar.gz
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 ddd557917c..b99760e834 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;