summaryrefslogtreecommitdiffstats
path: root/tests/auto/concurrent/qtconcurrentmap/functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/concurrent/qtconcurrentmap/functions.h')
-rw-r--r--tests/auto/concurrent/qtconcurrentmap/functions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/concurrent/qtconcurrentmap/functions.h b/tests/auto/concurrent/qtconcurrentmap/functions.h
index 19b19f6057..838b7090d8 100644
--- a/tests/auto/concurrent/qtconcurrentmap/functions.h
+++ b/tests/auto/concurrent/qtconcurrentmap/functions.h
@@ -80,6 +80,11 @@ public:
return QString::number(n);
}
+ Number squared() const
+ {
+ return Number(n * n);
+ }
+
bool operator==(const Number &other) const
{
return n == other.n;