From df1935df0e2f544a84c4361e4953cc3fd421ce77 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 25 Oct 2022 17:49:42 +0200 Subject: 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 --- src/testlib/qbenchmark_p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testlib/qbenchmark_p.h') 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 { -- cgit v1.2.3