From 724780fb23ece7ae87f88b0d34a137b4a5ae578c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Wed, 2 Jul 2014 14:12:47 +0200 Subject: [PATCH] Coding style fixes --- src/modules/partition/CreatePartitionDialog.cpp | 12 ++++++------ src/modules/partition/PartitionPage.cpp | 6 ++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/modules/partition/CreatePartitionDialog.cpp b/src/modules/partition/CreatePartitionDialog.cpp index 8bd51b972..ec2c7488f 100644 --- a/src/modules/partition/CreatePartitionDialog.cpp +++ b/src/modules/partition/CreatePartitionDialog.cpp @@ -81,10 +81,10 @@ CreatePartitionDialog::createJob() if ( m_role.roles() == PartitionRole::None ) { m_role = PartitionRole( - m_ui->extendedRadioButton->isChecked() - ? PartitionRole::Extended - : PartitionRole::Primary - ); + m_ui->extendedRadioButton->isChecked() + ? PartitionRole::Extended + : PartitionRole::Primary + ); } qint64 first = m_freePartition->firstSector(); @@ -92,8 +92,8 @@ CreatePartitionDialog::createJob() qint64 last = first + qint64( m_ui->sizeSpinBox->value() ) * 1024 * 1024 / m_device->logicalSectorSize(); FileSystem::Type type = m_role.has( PartitionRole::Extended ) - ? FileSystem::Extended - : FileSystem::typeForName( m_ui->fsComboBox->currentText() ); + ? FileSystem::Extended + : FileSystem::typeForName( m_ui->fsComboBox->currentText() ); FileSystem* fs = FileSystemFactory::create( type, first, last ); PartitionNode* parent = m_freePartition->parent(); diff --git a/src/modules/partition/PartitionPage.cpp b/src/modules/partition/PartitionPage.cpp index db4d211e6..67663eb05 100644 --- a/src/modules/partition/PartitionPage.cpp +++ b/src/modules/partition/PartitionPage.cpp @@ -64,7 +64,8 @@ PartitionPage::~PartitionPage() { } -void PartitionPage::updateButtons() +void +PartitionPage::updateButtons() { bool create = false, edit = false, del = false; @@ -84,7 +85,8 @@ void PartitionPage::updateButtons() m_ui->deleteButton->setEnabled( del ); } -void PartitionPage::onCreateClicked() +void +PartitionPage::onCreateClicked() { QModelIndex index = m_ui->partitionListView->currentIndex(); Q_ASSERT( index.isValid() );