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
|
@ -132,7 +132,7 @@ namespace Drivelist
|
|||
if (d.isSystem && subsystems.contains("nvme"))
|
||||
{
|
||||
bool isMounted = false;
|
||||
for (std::string mp : d.mountpoints)
|
||||
for (const std::string& mp : d.mountpoints)
|
||||
{
|
||||
if (!QByteArray::fromStdString(mp).startsWith("/media/")) {
|
||||
isMounted = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue