Commit fd4b9897 authored by Laurent Montel's avatar Laurent Montel 😁

Coding style

parent 10592578
Pipeline #29979 failed with stage
in 102 minutes and 9 seconds
......@@ -25,8 +25,7 @@ class WindowsContactImportExportPlugin : public KAddressBookImportExport::KAddre
{
Q_OBJECT
public:
explicit WindowsContactImportExportPlugin(QObject *parent = nullptr, const QList<QVariant> & =
{
explicit WindowsContactImportExportPlugin(QObject *parent = nullptr, const QList<QVariant> & = {
});
~WindowsContactImportExportPlugin() override;
......
......@@ -75,7 +75,6 @@ void WindowsContactImportExportPluginInterface::slotImportWindowsContact()
Q_EMIT emitPluginActivated(this);
}
void WindowsContactImportExportPluginInterface::exec()
{
switch (mImportExportAction) {
......@@ -85,7 +84,7 @@ void WindowsContactImportExportPluginInterface::exec()
case Export:
exportWindowsContact();
break;
}
}
}
void WindowsContactImportExportPluginInterface::importWindowsContact()
......@@ -128,5 +127,3 @@ void WindowsContactImportExportPluginInterface::importFile(const QUrl &url)
{
Q_UNUSED(url);
}
......@@ -29,8 +29,7 @@ class EmailLineEdit : public KSieveUi::AbstractSelectEmailLineEdit
{
Q_OBJECT
public:
explicit EmailLineEdit(QWidget *parent = nullptr, const QList<QVariant> & =
{
explicit EmailLineEdit(QWidget *parent = nullptr, const QList<QVariant> & = {
});
~EmailLineEdit() override;
......
......@@ -121,9 +121,9 @@ void SelectImapFolderWidget::createFolder()
if (index.isValid()) {
bool ok = false;
const QString name = QInputDialog::getText(this, i18n("Create Folder"), i18n("Folder Name:"), {}, {}, &ok);
if (!ok) {
return;
}
if (!ok) {
return;
}
if (!name.trimmed().isEmpty()) {
const QString currentPath = index.data(SelectImapLoadFoldersJob::PathRole).toString();
if (name.contains(QLatin1Char('/'))) {
......
......@@ -37,7 +37,6 @@ void RegexpEditorLineEditTest::shouldHaveDefaultValue()
QVERIFY(mainLayout);
QCOMPARE(mainLayout->contentsMargins(), QMargins(0, 0, 0, 0));
QLineEdit *mLineEdit = w.findChild<QLineEdit *>(QStringLiteral("lineedit"));
QVERIFY(mLineEdit);
QVERIFY(mLineEdit->text().isEmpty());
......
......@@ -28,8 +28,7 @@ class RegexpEditorLineEdit : public KSieveUi::AbstractRegexpEditorLineEdit
{
Q_OBJECT
public:
explicit RegexpEditorLineEdit(QWidget *parent = nullptr, const QList<QVariant> & =
{
explicit RegexpEditorLineEdit(QWidget *parent = nullptr, const QList<QVariant> & = {
});
~RegexpEditorLineEdit() override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment