summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-10-25 17:49:42 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2022-10-28 23:42:39 +0200
commitdf1935df0e2f544a84c4361e4953cc3fd421ce77 (patch)
tree9ca385852ed65b7a5a41fe885b50fbce55304593 /src
parent6a839e0ae4cb1eddd290d64b152a2571f3586ed2 (diff)
Correct (and reflow) an out-of-date comment on benchmarking
What's now called TestMethods::invokeTest() was apparently once called qInvokeTestMethod(). Also, its current instance is (now) cleared by its destructor rather than (overtly) at the end of that function. Change-Id: I04de7ca2247dd640a398b3e4e7bf410401f3cbbf Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/testlib/qbenchmark_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testlib/qbenchmark_p.h b/src/testlib/qbenchmark_p.h
index 3259dd3326..93891576a7 100644
--- a/src/testlib/qbenchmark_p.h
+++ b/src/testlib/qbenchmark_p.h
@@ -119,10 +119,10 @@ private:
};
/*
- The QBenchmarkTestMethodData class stores all benchmark-related data
- for the current test case. QBenchmarkTestMethodData:current is
- created at the beginning of qInvokeTestMethod() and cleared at
- the end.
+ The QBenchmarkTestMethodData class stores all benchmark-related data for the
+ current test case. QBenchmarkTestMethodData:current is set to a local
+ instance at the beginning of TestMethods::invokeTest() and cleared by its
+ destructor when that instance drops out of scope.
*/
class Q_TESTLIB_EXPORT QBenchmarkTestMethodData
{