summaryrefslogtreecommitdiffstats
path: root/src/testlib/qbenchmark.cpp
diff options
context:
space:
mode:
authorMorten Sorvig <msorvig@trolltech.com>2009-08-11 11:13:11 (GMT)
committerMorten Sorvig <msorvig@trolltech.com>2009-08-11 11:13:11 (GMT)
commit73b61029b00e12f313f9097d665539792d53e885 (patch)
treed2c51b3a51e0da4e160d174df70f09accae0cc41 /src/testlib/qbenchmark.cpp
parent68cf12a907c4fbc918019dad2c2a845466d15a30 (diff)
downloadQt-73b61029b00e12f313f9097d665539792d53e885.zip
Qt-73b61029b00e12f313f9097d665539792d53e885.tar.gz
Qt-73b61029b00e12f313f9097d665539792d53e885.tar.bz2
Fix BC breakage caused by commit 7aa2d76d.
Code compiled with 4.5 expects to find the QBenchmarkIterationController() constructor, so ad an overload instead of replacing it.
Diffstat (limited to 'src/testlib/qbenchmark.cpp')
-rw-r--r--src/testlib/qbenchmark.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testlib/qbenchmark.cpp b/src/testlib/qbenchmark.cpp
index eaec02f..42ce662 100644
--- a/src/testlib/qbenchmark.cpp
+++ b/src/testlib/qbenchmark.cpp
@@ -197,6 +197,13 @@ QTest::QBenchmarkIterationController::QBenchmarkIterationController(RunMode runM
if (runMode == RunOnce)
QBenchmarkTestMethodData::current->runOnce = true;
}
+
+QTest::QBenchmarkIterationController::QBenchmarkIterationController()
+{
+ QTest::beginBenchmarkMeasurement();
+ i = 0;
+}
+
/*! \internal
*/
QTest::QBenchmarkIterationController::~QBenchmarkIterationController()