summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscopedpointer
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-13 03:26:46 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-13 03:26:46 (GMT)
commitbc8d2541960c706dbb765755d8c661ae608cbedc (patch)
treeabea5473fd54b2065bb7929c927ac247a0b213b1 /tests/auto/qscopedpointer
parentcc1c67088b5eceaa577d7c237391488874efbe90 (diff)
parent976fdd41d357dc87bcac7bae496d25f19ee72baf (diff)
downloadQt-bc8d2541960c706dbb765755d8c661ae608cbedc.zip
Qt-bc8d2541960c706dbb765755d8c661ae608cbedc.tar.gz
Qt-bc8d2541960c706dbb765755d8c661ae608cbedc.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/qscopedpointer')
-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;