Commit 75b74dde authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: coding style

parent 42362b45
......@@ -168,8 +168,7 @@ KContacts::Addressee::List VCardImportExportPluginInterface::parseVCard(const QB
return converter.parseVCards(data);
}
KContacts::Addressee::List VCardImportExportPluginInterface::filterContacts(const KContacts::Addressee::List &addrList,
KAddressBookImportExport::KAddressBookExportSelectionWidget::ExportFields exportFieldType) const
KContacts::Addressee::List VCardImportExportPluginInterface::filterContacts(const KContacts::Addressee::List &addrList, KAddressBookImportExport::KAddressBookExportSelectionWidget::ExportFields exportFieldType) const
{
KContacts::Addressee::List list;
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -351,8 +351,7 @@ MergeContacts::ConflictInformations MergeContacts::requiresManualSelectionOfInfo
return result;
}
void MergeContacts::checkCustomValue(const KContacts::Addressee &address, const QString &variable, KContacts::Addressee &newContact, MergeContacts::ConflictInformations &result,
MergeContacts::ConflictInformation conflict)
void MergeContacts::checkCustomValue(const KContacts::Addressee &address, const QString &variable, KContacts::Addressee &newContact, MergeContacts::ConflictInformations &result, MergeContacts::ConflictInformation conflict)
{
const QString value = address.custom(QStringLiteral("KADDRESSBOOK"), variable);
if (!value.isEmpty()) {
......
......@@ -63,8 +63,7 @@ public:
void setItems(const Akonadi::Item::List &items);
private:
void mergeToContact(KContacts::Addressee &newAddress, const KContacts::Addressee &fromContact, bool excludeConflictPart);
void checkCustomValue(const KContacts::Addressee &address, const QString &variable, KContacts::Addressee &newContact, MergeContacts::ConflictInformations &result,
MergeContacts::ConflictInformation conflict);
void checkCustomValue(const KContacts::Addressee &address, const QString &variable, KContacts::Addressee &newContact, MergeContacts::ConflictInformations &result, MergeContacts::ConflictInformation conflict);
void mergeCustomValue(const KContacts::Addressee &fromContact, const QString &variable, KContacts::Addressee &newContact);
Akonadi::Item::List mListItem;
};
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -21,7 +21,6 @@
#include "markdowncreatelinkdialog.h"
#include "markdowncreatelinkwidget.h"
#include <QDialogButtonBox>
#include <QTest>
#include <QVBoxLayout>
......@@ -30,7 +29,6 @@ QTEST_MAIN(MarkdownCreateLinkDialogTest)
MarkdownCreateLinkDialogTest::MarkdownCreateLinkDialogTest(QObject *parent)
: QObject(parent)
{
}
void MarkdownCreateLinkDialogTest::shouldHaveDefaultValue()
......
......@@ -28,7 +28,6 @@ QTEST_MAIN(MarkdownCreateLinkWidgetTest)
MarkdownCreateLinkWidgetTest::MarkdownCreateLinkWidgetTest(QObject *parent)
: QObject(parent)
{
}
void MarkdownCreateLinkWidgetTest::shouldHaveDefaultValue()
......@@ -40,7 +39,6 @@ void MarkdownCreateLinkWidgetTest::shouldHaveDefaultValue()
KdepimTestLayout::checkContentsMargins(0, mainLayout);
mainLayout->setContentsMargins(0, 0, 0, 0);
QLineEdit *mTitle = w.findChild<QLineEdit *>(QStringLiteral("title"));
QVERIFY(mTitle);
QVERIFY(mTitle->text().isEmpty());
......
......@@ -44,7 +44,6 @@ MarkdownCreateLinkDialog::MarkdownCreateLinkDialog(QWidget *parent)
MarkdownCreateLinkDialog::~MarkdownCreateLinkDialog()
{
}
QString MarkdownCreateLinkDialog::linkStr() const
......
......@@ -35,14 +35,12 @@ MarkdownCreateLinkWidget::MarkdownCreateLinkWidget(QWidget *parent)
mLink = new QLineEdit(this);
mLink->setObjectName(QStringLiteral("link"));
mainLayout->addRow(i18n("Title:"), mTitle);
mainLayout->addRow(i18n("Link:"), mLink);
}
MarkdownCreateLinkWidget::~MarkdownCreateLinkWidget()
{
}
QString MarkdownCreateLinkWidget::linkStr() const
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -23,8 +23,7 @@
#include <QPointer>
ConfirmAddressSimpleStringListEditor::ConfirmAddressSimpleStringListEditor(QWidget *parent, ButtonCode buttons, const QString &addLabel, const QString &removeLabel, const QString &modifyLabel,
const QString &addDialogLabel)
ConfirmAddressSimpleStringListEditor::ConfirmAddressSimpleStringListEditor(QWidget *parent, ButtonCode buttons, const QString &addLabel, const QString &removeLabel, const QString &modifyLabel, const QString &addDialogLabel)
: PimCommon::SimpleStringListEditor(parent, buttons, addLabel, removeLabel, modifyLabel, addDialogLabel)
{
}
......
......@@ -25,8 +25,7 @@ class ConfirmAddressSimpleStringListEditor : public PimCommon::SimpleStringListE
{
Q_OBJECT
public:
explicit ConfirmAddressSimpleStringListEditor(QWidget *parent = nullptr, ButtonCode buttons = Unsorted, const QString &addLabel = QString(),
const QString &removeLabel = QString(), const QString &modifyLabel = QString(), const QString &addDialogLabel = QString());
explicit ConfirmAddressSimpleStringListEditor(QWidget *parent = nullptr, ButtonCode buttons = Unsorted, const QString &addLabel = QString(), const QString &removeLabel = QString(), const QString &modifyLabel = QString(), const QString &addDialogLabel = QString());
void addNewEntry() override;
QString modifyEntry(const QString &text) override;
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -67,7 +67,7 @@ void GrammalecteResultWidget::slotError(GrammalecteResultJob::ErrorType error)
qCWarning(LIBGRAMMALECTE_PLUGIN_LOG) << "An error found during executing GrammalecteResultJob: missing python path";
break;
case GrammalecteResultJob::ErrorType::GrammalecteMissing:
qCWarning(LIBGRAMMALECTE_PLUGIN_LOG) << "An error found during executing GrammalecteResultJob: missing grammalectepath" ;
qCWarning(LIBGRAMMALECTE_PLUGIN_LOG) << "An error found during executing GrammalecteResultJob: missing grammalectepath";
break;
case GrammalecteResultJob::ErrorType::Unknown:
qCWarning(LIBGRAMMALECTE_PLUGIN_LOG) << "An error found during executing GrammalecteResultJob: unknow error";
......
......@@ -21,8 +21,7 @@
#define KDEPIMTEST_LAYOUT_H
#include <QTest>
#include <QLayout>
namespace KdepimTestLayout
{
namespace KdepimTestLayout {
void checkContentsMargins(int margin, QLayout *layout)
{
int top = -1;
......
......@@ -25,7 +25,6 @@ QTEST_GUILESS_MAIN(LanguageInfoTest)
LanguageInfoTest::LanguageInfoTest(QObject *parent)
: QObject(parent)
{
}
void LanguageInfoTest::shouldHaveDefaultValues()
......
......@@ -33,5 +33,4 @@ private Q_SLOTS:
void shouldBeAbleToStart();
};
#endif // LANGUAGETOOLGETLISTOFLANGUAGEJOBTEST_H
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