mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
code-quality: fixed all range-loop warnings which were reported from clazy.
See: `rpi-imager/src/downloadthread.cpp:1015:14: warning: Missing reference in range-for with non trivial type (QByteArray) [clazy-range-loop]`
This commit is contained in:
parent
8d943ce2bd
commit
829c200fd1
5 changed files with 11 additions and 11 deletions
|
@ -71,7 +71,7 @@ void UDisks2Api::_unmountDrive(const QString &driveDbusPath)
|
|||
if (!manager.isValid() || !list.isValid())
|
||||
return;
|
||||
|
||||
for (auto devpath : list.value())
|
||||
for (const auto& devpath : list.value())
|
||||
{
|
||||
QString devpathStr = devpath.path();
|
||||
|
||||
|
@ -263,7 +263,7 @@ QByteArrayList UDisks2Api::mountPoints(const QDBusInterface &filesystem)
|
|||
QVariantList args = {"org.freedesktop.UDisks2.Filesystem", "MountPoints"};
|
||||
msg.setArguments(args);
|
||||
QDBusMessage reply = QDBusConnection::systemBus().call(msg);
|
||||
for (auto arg : reply.arguments())
|
||||
for (const auto& arg : reply.arguments())
|
||||
{
|
||||
arg.value<QDBusVariant>().variant().value<QDBusArgument>() >> mps;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue