diff --git a/kmail/editorplugins/changecase/changecaseplugineditorinterface.cpp b/kmail/editorplugins/changecase/changecaseplugineditorinterface.cpp index 94253e4424ee6003b1b24808f7ec56ab728ce75f..51330bbfd7063221207d41fc78340415f3fbce69 100644 --- a/kmail/editorplugins/changecase/changecaseplugineditorinterface.cpp +++ b/kmail/editorplugins/changecase/changecaseplugineditorinterface.cpp @@ -56,7 +56,7 @@ void ChangeCasePluginEditorInterface::createAction(KActionCollection *ac) void ChangeCasePluginEditorInterface::exec() { - switch(mType) { + switch (mType) { case Unknown: qCDebug(KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type"; break; @@ -104,7 +104,6 @@ void ChangeCasePluginEditorInterface::reverseCase() editorUtil.reverseCase(textCursor); } - void ChangeCasePluginEditorInterface::slotUpperCase() { mType = UpperCase; diff --git a/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.cpp b/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.cpp index 64c7008501cb87dd6cb4dcb38c0f50453361fd63..07f742df9276e6cfd923c48d95bbef01b8e95a75 100644 --- a/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.cpp +++ b/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.cpp @@ -88,7 +88,7 @@ void ZoomTextPluginEditorInterface::slotZoomReset() void ZoomTextPluginEditorInterface::exec() { - switch(mType) { + switch (mType) { case Unknown: qCDebug(KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type"; break; diff --git a/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.h b/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.h index c964a86f5b35287b885e190a604315f18bc84843..c424bf940bc29322628b4b2c8763cbafee10b27d 100644 --- a/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.h +++ b/kmail/editorplugins/zoomtext/zoomtextplugineditorinterface.h @@ -32,7 +32,6 @@ public: void exec() Q_DECL_OVERRIDE; bool hasPopupMenuSupport() const Q_DECL_OVERRIDE; - private Q_SLOTS: void slotZoomOut(); diff --git a/korganizer/plugins/hebrew/parsha.cpp b/korganizer/plugins/hebrew/parsha.cpp index 147c5474e0ff029eff3405af1e7f9b315101b2d1..3e36cfcc08dff0cb2f7b1cee9c7f88c6cf517c78 100644 --- a/korganizer/plugins/hebrew/parsha.cpp +++ b/korganizer/plugins/hebrew/parsha.cpp @@ -288,7 +288,7 @@ QString Parsha::findParshaName(int dayNumber, int kvia, bool isLeapYear, if (!array) { /* Something is terribly wrong! */ buffer = QStringLiteral("??Parsha??"); qCWarning(KORGANIZER_HEBREWPLUGIN_LOG) << "Hebrew Plugin: Was not able to determine the Parsha." - << "Please report this as a bug."; + << "Please report this as a bug."; return buffer; } diff --git a/plugins/messageviewer/bodypartformatter/autotests/rendertest.cpp b/plugins/messageviewer/bodypartformatter/autotests/rendertest.cpp index 6bb654da68c7472baf3f2ca2ae49af374ea253ad..593906f78d4b4d88490a25ade40dc29920bf9979 100644 --- a/plugins/messageviewer/bodypartformatter/autotests/rendertest.cpp +++ b/plugins/messageviewer/bodypartformatter/autotests/rendertest.cpp @@ -73,8 +73,8 @@ void RenderTest::testRender() fileWriter.begin(QString()); fileWriter.queue(QStringLiteral("\n" - "\n" - "\n")); + "\n" + "\n")); otp.parseObjectTree(msg.data()); @@ -87,12 +87,12 @@ void RenderTest::testRender() // validate xml and pretty-print for comparisson // TODO add proper cmake check for xmllint and diff QStringList args = QStringList() - << QStringLiteral("--format") - << QStringLiteral("--encode") - << QStringLiteral("UTF8") - << QStringLiteral("--output") - << htmlFileName - << outFileName; + << QStringLiteral("--format") + << QStringLiteral("--encode") + << QStringLiteral("UTF8") + << QStringLiteral("--output") + << htmlFileName + << outFileName; QCOMPARE(QProcess::execute(QLatin1String("xmllint"), args), 0); // get rid of system dependent or random paths @@ -109,9 +109,9 @@ void RenderTest::testRender() // compare to reference file args = QStringList() - << QStringLiteral("-u") - << referenceFileName - << htmlFileName; + << QStringLiteral("-u") + << referenceFileName + << htmlFileName; QProcess proc; proc.setProcessChannelMode(QProcess::ForwardedChannels); proc.start(QStringLiteral("diff"), args); diff --git a/plugins/messageviewer/bodypartformatter/autotests/testobjecttreesource.h b/plugins/messageviewer/bodypartformatter/autotests/testobjecttreesource.h index 3987acca54e8318df37cb09f6ab585892a4466c3..93d6de994291eef82651613e85974ff7a8caabd4 100644 --- a/plugins/messageviewer/bodypartformatter/autotests/testobjecttreesource.h +++ b/plugins/messageviewer/bodypartformatter/autotests/testobjecttreesource.h @@ -37,13 +37,11 @@ public: { } - MessageViewer::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE - { + MessageViewer::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE { return mWriter; } - MessageViewer::CSSHelperBase *cssHelper() Q_DECL_OVERRIDE - { + MessageViewer::CSSHelperBase *cssHelper() Q_DECL_OVERRIDE { return mCSSHelper; } @@ -75,32 +73,27 @@ public: { return false; } - void setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_DECL_OVERRIDE - { + void setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_DECL_OVERRIDE { Q_UNUSED(mode) } int levelQuote() const Q_DECL_OVERRIDE { return false; } - const QTextCodec *overrideCodec() Q_DECL_OVERRIDE - { + const QTextCodec *overrideCodec() Q_DECL_OVERRIDE { return 0; } - QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE - { + QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE { Q_UNUSED(message); return QString(); } - const MessageViewer::AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE - { + const MessageViewer::AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE { return MessageViewer::AttachmentStrategy::smart(); } - QObject *sourceObject() Q_DECL_OVERRIDE - { + QObject *sourceObject() Q_DECL_OVERRIDE { return 0; } - + bool autoImportKeys() const Q_DECL_OVERRIDE { return false; @@ -113,7 +106,7 @@ public: { return false; } - + private: MessageViewer::HtmlWriter *mWriter; MessageViewer::CSSHelperBase *mCSSHelper; diff --git a/plugins/messageviewerwebengineurlinterceptor/adblock/autotests/adblockmanagertest.cpp b/plugins/messageviewerwebengineurlinterceptor/adblock/autotests/adblockmanagertest.cpp index 555c77852583efd8a4984b72c282c66a77261736..b1199084f8857372b62a486cd25b7947640c4c88 100644 --- a/plugins/messageviewerwebengineurlinterceptor/adblock/autotests/adblockmanagertest.cpp +++ b/plugins/messageviewerwebengineurlinterceptor/adblock/autotests/adblockmanagertest.cpp @@ -15,7 +15,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "adblockmanagertest.h" #include "../lib/adblockmanager.h" #include diff --git a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/adblockmanager.cpp b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/adblockmanager.cpp index 27bf60660702e14474483e5e86a55bafdda079ff..05b50b3a5bba6f466db2eecf3189b981f24b5113 100644 --- a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/adblockmanager.cpp +++ b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/adblockmanager.cpp @@ -15,7 +15,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "adblockmanager.h" #include diff --git a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.cpp b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.cpp index 2e28a4554f617d8b7e398e74763a9e91138ff408..a983ea94c789bba1dea6db7a5d8dba26581ec2ae 100644 --- a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.cpp +++ b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.cpp @@ -15,7 +15,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "adblockmanagertest.h" #include diff --git a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.h b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.h index f675e693b451f932920b430eec54ac2983027baa..0093df6fefc06143fe14e1b66554546cc76385c7 100644 --- a/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.h +++ b/plugins/messageviewerwebengineurlinterceptor/adblock/lib/autotests/adblockmanagertest.h @@ -15,7 +15,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #ifndef ADBLOCKMANAGERTEST_H #define ADBLOCKMANAGERTEST_H