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>
This commit is contained in:
Thiago Macieira 2022-04-09 07:50:54 -07:00
parent c87c2b0544
commit fbe6f19853

View File

@ -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
{