diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2022-12-03 14:06:04 +0100 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2022-12-05 10:03:18 +0000 |
commit | 0e972840f4b8142b327dc32770d5a34c594ed153 (patch) | |
tree | 6c7885a53c52ccbb90de5157d1a72e3534fa5b0d /tests | |
parent | 9f79c28d1f9ef92ecfe7a00e13d0130142c961ff (diff) |
Fix clazy-range-loop-detach
Change-Id: I72ac1befe4601b90c38cade89f748a270d997e1f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/shared/perfparsertestclient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/shared/perfparsertestclient.cpp b/tests/auto/shared/perfparsertestclient.cpp index 942d7b2..ead19aa 100644 --- a/tests/auto/shared/perfparsertestclient.cpp +++ b/tests/auto/shared/perfparsertestclient.cpp @@ -202,7 +202,8 @@ void PerfParserTestClient::convertToText(QTextStream &out) const { using Qt::dec; using Qt::hex; - for (const auto &sample : samples()) { + const auto allSamples = samples(); + for (const auto &sample : allSamples) { out << string(command(sample.pid).name) << '\t' << sample.pid << '\t' << sample.tid << '\t' << sample.time / 1000000000 << '.' << qSetFieldWidth(9) << qSetPadChar(QLatin1Char('0')) |