Commit 319da3a7 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

clang-tidy: modernize-loop-convert (manually tweaked)

parent 5aa7f95b
......@@ -113,12 +113,12 @@ private Q_SLOTS:
search.products = QStringList{"dragonplayer"};
auto job = Bugzilla::BugClient().search(search);
job->start();
QList<Bug::Ptr> bugs = Bugzilla::BugClient().search(job);
const QList<Bug::Ptr> bugs = Bugzilla::BugClient().search(job);
QCOMPARE(bugs.size(), 2);
Bug::Ptr bug;
for (auto it = bugs.begin(); it != bugs.end(); ++it) {
if ((*it)->id() == 156514) {
bug = *it;
for (const auto &b : bugs) {
if (b->id() == 156514) {
bug = b;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment