GIT_SILENT: coding style

wilder
Laurent Montel 5 years ago
parent a4e17aedb3
commit f3dea024bf
  1. 1
      agents/followupreminderagent/followupreminderinfowidget.cpp
  2. 1
      ktnef/src/attachpropertydialog.cpp
  3. 2
      src/configuredialog/configureappearancepage.cpp
  4. 1
      src/configuredialog/configuredialog_p.h
  5. 2
      src/editor/kmcomposerwin.cpp
  6. 1
      src/folderarchive/folderarchiveaccountinfo.cpp
  7. 1
      src/identity/identitylistview.cpp
  8. 9
      src/kmcommands.cpp
  9. 12
      src/kmmainwidget.cpp
  10. 1
      src/kontactplugin/kmail/kmail_plugin.cpp
  11. 8
      src/kontactplugin/summary/summaryview_part.cpp
  12. 1
      src/kontactplugin/summary/summaryview_plugin.cpp
  13. 2
      src/search/checkindexingjob.cpp
  14. 1
      src/searchdialog/searchdescriptionattribute.cpp
  15. 1
      src/undostack.cpp
  16. 1
      src/util.cpp

@ -49,7 +49,6 @@ FollowUpReminder::FollowUpReminderInfo *FollowUpReminderInfoItem::info() const
FollowUpReminderInfoWidget::FollowUpReminderInfoWidget(QWidget *parent) FollowUpReminderInfoWidget::FollowUpReminderInfoWidget(QWidget *parent)
: QWidget(parent) : QWidget(parent)
{ {
setObjectName(QStringLiteral("FollowUpReminderInfoWidget")); setObjectName(QStringLiteral("FollowUpReminderInfoWidget"));
auto *hbox = new QHBoxLayout(this); auto *hbox = new QHBoxLayout(this);

@ -37,7 +37,6 @@
AttachPropertyDialog::AttachPropertyDialog(QWidget *parent) AttachPropertyDialog::AttachPropertyDialog(QWidget *parent)
: QDialog(parent) : QDialog(parent)
{ {
setModal(true); setModal(true);

@ -138,7 +138,6 @@ static const int numFontNames = sizeof fontNames / sizeof *fontNames;
AppearancePageFontsTab::AppearancePageFontsTab(QWidget *parent) AppearancePageFontsTab::AppearancePageFontsTab(QWidget *parent)
: ConfigModuleTab(parent) : ConfigModuleTab(parent)
{ {
assert(numFontNames == sizeof mFont / sizeof *mFont); assert(numFontNames == sizeof mFont / sizeof *mFont);
@ -585,7 +584,6 @@ static const int numDateDisplayConfig
AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent) AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
: ConfigModuleTab(parent) : ConfigModuleTab(parent)
{ {
auto *vlay = new QVBoxLayout(this); auto *vlay = new QVBoxLayout(this);

@ -18,7 +18,6 @@ class ConfigModuleTab : public QWidget
public: public:
explicit ConfigModuleTab(QWidget *parent = nullptr) explicit ConfigModuleTab(QWidget *parent = nullptr)
: QWidget(parent) : QWidget(parent)
{ {
} }

@ -262,7 +262,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
v->setContentsMargins({}); v->setContentsMargins({});
v->addWidget(mHeadersToEditorSplitter); v->addWidget(mHeadersToEditorSplitter);
auto *identity = new KIdentityManagement::IdentityCombo(kmkernel->identityManager(), auto *identity = new KIdentityManagement::IdentityCombo(kmkernel->identityManager(),
mHeadersArea); mHeadersArea);
identity->setCurrentIdentity(mId); identity->setCurrentIdentity(mId);
connect(identity, &KIdentityManagement::IdentityCombo::identityDeleted, this, &KMComposerWin::slotIdentityDeleted); connect(identity, &KIdentityManagement::IdentityCombo::identityDeleted, this, &KMComposerWin::slotIdentityDeleted);
connect(identity, &KIdentityManagement::IdentityCombo::invalidIdentity, this, &KMComposerWin::slotInvalidIdentity); connect(identity, &KIdentityManagement::IdentityCombo::invalidIdentity, this, &KMComposerWin::slotInvalidIdentity);

@ -5,7 +5,6 @@
*/ */
#include "folderarchiveaccountinfo.h" #include "folderarchiveaccountinfo.h"
FolderArchiveAccountInfo::FolderArchiveAccountInfo() FolderArchiveAccountInfo::FolderArchiveAccountInfo()
= default; = default;

@ -98,7 +98,6 @@ void IdentityListViewItem::init(const KIdentityManagement::Identity &ident)
IdentityListView::IdentityListView(QWidget *parent) IdentityListView::IdentityListView(QWidget *parent)
: QTreeWidget(parent) : QTreeWidget(parent)
{ {
#ifndef QT_NO_DRAGANDDROP #ifndef QT_NO_DRAGANDDROP
setDragEnabled(true); setDragEnabled(true);

@ -691,8 +691,7 @@ KMCommand::Result KMSaveMsgCommand::execute()
KMOpenMsgCommand::KMOpenMsgCommand(QWidget *parent, const QUrl &url, const QString &encoding, KMMainWidget *main) KMOpenMsgCommand::KMOpenMsgCommand(QWidget *parent, const QUrl &url, const QString &encoding, KMMainWidget *main)
: KMCommand(parent) : KMCommand(parent)
, mUrl(url) , mUrl(url)
, , mEncoding(encoding)
mEncoding(encoding)
, mMainWidget(main) , mMainWidget(main)
{ {
qCDebug(KMAIL_LOG) << "url :" << url; qCDebug(KMAIL_LOG) << "url :" << url;
@ -1465,8 +1464,7 @@ void KMCopyDecryptedCommand::slotAppendResult(KJob *job)
KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item::List &msgList, MessageList::Core::MessageItemSetReference ref) KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item::List &msgList, MessageList::Core::MessageItemSetReference ref)
: KMCommand(nullptr, msgList) : KMCommand(nullptr, msgList)
, mDestFolder(destFolder) , mDestFolder(destFolder)
, , mRef(ref)
mRef(ref)
{ {
fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent); fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
} }
@ -1474,8 +1472,7 @@ KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonad
KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item &msg, MessageList::Core::MessageItemSetReference ref) KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item &msg, MessageList::Core::MessageItemSetReference ref)
: KMCommand(nullptr, msg) : KMCommand(nullptr, msg)
, mDestFolder(destFolder) , mDestFolder(destFolder)
, , mRef(ref)
mRef(ref)
{ {
fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent); fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
} }

@ -2078,12 +2078,12 @@ void KMMainWidget::slotCustomReplyAllToMsg(const QString &tmpl)
qCDebug(KMAIL_LOG) << "Reply to All with template:" << tmpl; qCDebug(KMAIL_LOG) << "Reply to All with template:" << tmpl;
auto *command = new KMReplyCommand(this, auto *command = new KMReplyCommand(this,
msg, msg,
MessageComposer::ReplyAll, MessageComposer::ReplyAll,
text, text,
false, false,
tmpl tmpl
); );
command->setReplyAsHtml(messageView()->htmlMail()); command->setReplyAsHtml(messageView()->htmlMail());
command->start(); command->start();

@ -35,7 +35,6 @@ EXPORT_KONTACT_PLUGIN_WITH_JSON(KMailPlugin, "kmailplugin.json")
KMailPlugin::KMailPlugin(KontactInterface::Core *core, const QVariantList &) KMailPlugin::KMailPlugin(KontactInterface::Core *core, const QVariantList &)
: KontactInterface::Plugin(core, core, "kmail2") : KontactInterface::Plugin(core, core, "kmail2")
{ {
setComponentName(QStringLiteral("kmail2"), i18n("KMail2")); setComponentName(QStringLiteral("kmail2"), i18n("KMail2"));

@ -209,11 +209,11 @@ void SummaryViewPart::updateWidgets()
} }
auto *lspacer = new QSpacerItem(1, 10, auto *lspacer = new QSpacerItem(1, 10,
QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding,
QSizePolicy::MinimumExpanding); QSizePolicy::MinimumExpanding);
auto *rspacer = new QSpacerItem(1, 10, auto *rspacer = new QSpacerItem(1, 10,
QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding,
QSizePolicy::MinimumExpanding); QSizePolicy::MinimumExpanding);
mLeftColumn->addSpacerItem(lspacer); mLeftColumn->addSpacerItem(lspacer);
mRightColumn->addSpacerItem(rspacer); mRightColumn->addSpacerItem(rspacer);

@ -25,7 +25,6 @@ EXPORT_KONTACT_PLUGIN_WITH_JSON(SummaryView, "summaryplugin.json")
SummaryView::SummaryView(KontactInterface::Core *core, const QVariantList &) SummaryView::SummaryView(KontactInterface::Core *core, const QVariantList &)
: KontactInterface::Plugin(core, core, nullptr) : KontactInterface::Plugin(core, core, nullptr)
{ {
mSyncAction = new KSelectAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Sync All"), this); mSyncAction = new KSelectAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Sync All"), this);
actionCollection()->addAction(QStringLiteral("kontact_summary_sync"), mSyncAction); actionCollection()->addAction(QStringLiteral("kontact_summary_sync"), mSyncAction);

@ -38,7 +38,7 @@ void CheckIndexingJob::start()
{ {
if (mCollection.isValid()) { if (mCollection.isValid()) {
auto *fetch = new Akonadi::CollectionFetchJob(mCollection, auto *fetch = new Akonadi::CollectionFetchJob(mCollection,
Akonadi::CollectionFetchJob::Base); Akonadi::CollectionFetchJob::Base);
fetch->fetchScope().setIncludeStatistics(true); fetch->fetchScope().setIncludeStatistics(true);
connect(fetch, &KJob::result, this, &CheckIndexingJob::slotCollectionPropertiesFinished); connect(fetch, &KJob::result, this, &CheckIndexingJob::slotCollectionPropertiesFinished);
} else { } else {

@ -8,7 +8,6 @@
#include <QDataStream> #include <QDataStream>
using namespace Akonadi; using namespace Akonadi;
SearchDescriptionAttribute::SearchDescriptionAttribute() SearchDescriptionAttribute::SearchDescriptionAttribute()

@ -18,7 +18,6 @@
#include <KLocalizedString> #include <KLocalizedString>
#include "kmail_debug.h" #include "kmail_debug.h"
using namespace KMail; using namespace KMail;
UndoStack::UndoStack(int size) UndoStack::UndoStack(int size)

@ -18,7 +18,6 @@
#include <QAction> #include <QAction>
#include <QStandardPaths> #include <QStandardPaths>
using namespace MailCommon; using namespace MailCommon;
using namespace KMail; using namespace KMail;
KMime::Types::Mailbox::List Util::mailingListsFromMessage(const Akonadi::Item &item) KMime::Types::Mailbox::List Util::mailingListsFromMessage(const Akonadi::Item &item)

Loading…
Cancel
Save