From e02160d025b42a841070ad79b763601f600ca319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 3 Oct 2017 11:19:07 +0100 Subject: [PATCH] Fix qAsConst usage. --- test/testlist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testlist.cpp b/test/testlist.cpp index b87260f..3c63114 100644 --- a/test/testlist.cpp +++ b/test/testlist.cpp @@ -82,7 +82,7 @@ int main( int argc, char **argv ) auto devices = backend->scanDevices(); qDebug() << "Found" << devices.length() << "devices."; - for (const auto pdev : devices) + for (const auto pdev : qAsConst(devices)) { qDebug() << "Device @" << (void *)pdev; qDebug() << " " << pdev->prettyName(); @@ -92,8 +92,8 @@ int main( int argc, char **argv ) << (partitiontable ? partitiontable->typeName() : QLatin1String("null")) << ')'; const auto partitionlist = flatten(partitiontable); - for (const auto &p : qAsConst(partitionlist)) - qDebug() << " " + for (const auto &p : qAsConst(partitionlist)) + qDebug() << " " << p->number() << p->partitionPath() << p->label()