Coding style fixes

This commit is contained in:
Aurélien Gâteau 2014-07-02 14:12:47 +02:00
parent ca247c26ca
commit 724780fb23
2 changed files with 10 additions and 8 deletions

View file

@ -81,10 +81,10 @@ CreatePartitionDialog::createJob()
if ( m_role.roles() == PartitionRole::None ) if ( m_role.roles() == PartitionRole::None )
{ {
m_role = PartitionRole( m_role = PartitionRole(
m_ui->extendedRadioButton->isChecked() m_ui->extendedRadioButton->isChecked()
? PartitionRole::Extended ? PartitionRole::Extended
: PartitionRole::Primary : PartitionRole::Primary
); );
} }
qint64 first = m_freePartition->firstSector(); qint64 first = m_freePartition->firstSector();
@ -92,8 +92,8 @@ CreatePartitionDialog::createJob()
qint64 last = first + qint64( m_ui->sizeSpinBox->value() ) * 1024 * 1024 / m_device->logicalSectorSize(); qint64 last = first + qint64( m_ui->sizeSpinBox->value() ) * 1024 * 1024 / m_device->logicalSectorSize();
FileSystem::Type type = m_role.has( PartitionRole::Extended ) FileSystem::Type type = m_role.has( PartitionRole::Extended )
? FileSystem::Extended ? FileSystem::Extended
: FileSystem::typeForName( m_ui->fsComboBox->currentText() ); : FileSystem::typeForName( m_ui->fsComboBox->currentText() );
FileSystem* fs = FileSystemFactory::create( type, first, last ); FileSystem* fs = FileSystemFactory::create( type, first, last );
PartitionNode* parent = m_freePartition->parent(); PartitionNode* parent = m_freePartition->parent();

View file

@ -64,7 +64,8 @@ PartitionPage::~PartitionPage()
{ {
} }
void PartitionPage::updateButtons() void
PartitionPage::updateButtons()
{ {
bool create = false, edit = false, del = false; bool create = false, edit = false, del = false;
@ -84,7 +85,8 @@ void PartitionPage::updateButtons()
m_ui->deleteButton->setEnabled( del ); m_ui->deleteButton->setEnabled( del );
} }
void PartitionPage::onCreateClicked() void
PartitionPage::onCreateClicked()
{ {
QModelIndex index = m_ui->partitionListView->currentIndex(); QModelIndex index = m_ui->partitionListView->currentIndex();
Q_ASSERT( index.isValid() ); Q_ASSERT( index.isValid() );