Coding style fixes
This commit is contained in:
parent
ec6703b9cd
commit
8a64dcb270
@ -123,7 +123,7 @@ PartitionCoreModule::DeviceInfo::~DeviceInfo()
|
|||||||
bool
|
bool
|
||||||
PartitionCoreModule::DeviceInfo::hasRootMountPoint() const
|
PartitionCoreModule::DeviceInfo::hasRootMountPoint() const
|
||||||
{
|
{
|
||||||
for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it)
|
for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it )
|
||||||
{
|
{
|
||||||
if ( PartitionInfo::mountPoint( *it ) == "/" )
|
if ( PartitionInfo::mountPoint( *it ) == "/" )
|
||||||
return true;
|
return true;
|
||||||
@ -135,10 +135,8 @@ void
|
|||||||
PartitionCoreModule::DeviceInfo::forgetChanges()
|
PartitionCoreModule::DeviceInfo::forgetChanges()
|
||||||
{
|
{
|
||||||
jobs.clear();
|
jobs.clear();
|
||||||
for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it)
|
for ( auto it = PartitionIterator::begin( device.data() ); it != PartitionIterator::end( device.data() ); ++it )
|
||||||
{
|
|
||||||
PartitionInfo::reset( *it );
|
PartitionInfo::reset( *it );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//- PartitionCoreModule ------------------------------------
|
//- PartitionCoreModule ------------------------------------
|
||||||
|
@ -198,8 +198,6 @@ PartitionPage::editExistingPartition( Device* device, Partition* partition )
|
|||||||
{
|
{
|
||||||
QPointer<EditExistingPartitionDialog> dlg = new EditExistingPartitionDialog( device, partition, this );
|
QPointer<EditExistingPartitionDialog> dlg = new EditExistingPartitionDialog( device, partition, this );
|
||||||
if ( dlg->exec() == QDialog::Accepted )
|
if ( dlg->exec() == QDialog::Accepted )
|
||||||
{
|
|
||||||
dlg->applyChanges( m_core );
|
dlg->applyChanges( m_core );
|
||||||
}
|
|
||||||
delete dlg;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user