summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-04-09 07:50:54 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-04-14 03:17:42 +0000
commitfbe6f198531efce3d1d02c8846347a0c3ef07a72 (patch)
tree62c7dabf10de4b84ac2d7052824aca85aab2fa54 /src/testlib
parentc87c2b0544aea0f80d07eaaae2712accd484511e (diff)
QBENCHMARK: Replace the double underscore with something not reserved
Clang with -Wreserved-identifier complains. Pick-to: 6.3 Fixes: QTBUG-102431 Change-Id: If2e0f4b2190341ebaa31fffd16e441ee35b0e3b9 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qbenchmark.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testlib/qbenchmark.h b/src/testlib/qbenchmark.h
index 4a55fcc23e..829c12eebc 100644
--- a/src/testlib/qbenchmark.h
+++ b/src/testlib/qbenchmark.h
@@ -74,12 +74,12 @@ public:
// --- BEGIN public API ---
#define QBENCHMARK \
- for (QTest::QBenchmarkIterationController __iteration_controller; \
- __iteration_controller.isDone() == false; __iteration_controller.next())
+ for (QTest::QBenchmarkIterationController _q_iteration_controller; \
+ _q_iteration_controller.isDone() == false; _q_iteration_controller.next())
#define QBENCHMARK_ONCE \
- for (QTest::QBenchmarkIterationController __iteration_controller(QTest::QBenchmarkIterationController::RunOnce); \
- __iteration_controller.isDone() == false; __iteration_controller.next())
+ for (QTest::QBenchmarkIterationController _q_iteration_controller(QTest::QBenchmarkIterationController::RunOnce); \
+ _q_iteration_controller.isDone() == false; _q_iteration_controller.next())
namespace QTest
{