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; } };