mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[fsresizer] Fix endless loop
- Improve variable names - Missing iterator++
This commit is contained in:
parent
06a00a15c6
commit
aae4b38e69
1 changed files with 5 additions and 5 deletions
|
@ -120,14 +120,14 @@ ResizeFSJob::exec()
|
|||
using DeviceList = QList< Device* >;
|
||||
DeviceList devices = backend_p->scanDevices( false );
|
||||
cDebug() << "ResizeFSJob found" << devices.count() << "devices.";
|
||||
for ( DeviceList::iterator it = devices.begin(); it != devices.end(); )
|
||||
for ( DeviceList::iterator dev_it = devices.begin(); dev_it != devices.end(); ++dev_it )
|
||||
{
|
||||
if ( ! (*it) )
|
||||
if ( ! (*dev_it) )
|
||||
continue;
|
||||
cDebug() << "ResizeFSJob found" << ( *it )->deviceNode();
|
||||
for ( auto pit = PartitionIterator::begin( *it); pit != PartitionIterator::end( *it); ++pit )
|
||||
cDebug() << "ResizeFSJob found" << ( *dev_it )->deviceNode();
|
||||
for ( auto part_it = PartitionIterator::begin( *dev_it); part_it != PartitionIterator::end( *dev_it ); ++part_it )
|
||||
{
|
||||
cDebug() << ".." << ( *pit )->mountPoint();
|
||||
cDebug() << ".." << ( *part_it )->mountPoint();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue