summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/benchmarks/corelib/tools/qlist/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/tools/qlist/main.cpp b/tests/benchmarks/corelib/tools/qlist/main.cpp
index 47e7d8a4a6..b65d02b750 100644
--- a/tests/benchmarks/corelib/tools/qlist/main.cpp
+++ b/tests/benchmarks/corelib/tools/qlist/main.cpp
@@ -103,6 +103,8 @@ struct MyPrimitive : public MyBase
{ ++errorCount; }
MyPrimitive(const MyPrimitive &other) : MyBase(other)
{ ++errorCount; }
+ MyPrimitive &operator=(const MyPrimitive &other)
+ { ++errorCount; MyBase::operator=(other); return *this; }
~MyPrimitive()
{ ++errorCount; }
};