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

Astyle kdelibs

parent fe463669
...@@ -56,7 +56,7 @@ void ChangeCasePluginEditorInterface::createAction(KActionCollection *ac) ...@@ -56,7 +56,7 @@ void ChangeCasePluginEditorInterface::createAction(KActionCollection *ac)
void ChangeCasePluginEditorInterface::exec() void ChangeCasePluginEditorInterface::exec()
{ {
switch(mType) { switch (mType) {
case Unknown: case Unknown:
qCDebug(KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type"; qCDebug(KMAIL_EDITOR_CHANGECASE_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type";
break; break;
...@@ -104,7 +104,6 @@ void ChangeCasePluginEditorInterface::reverseCase() ...@@ -104,7 +104,6 @@ void ChangeCasePluginEditorInterface::reverseCase()
editorUtil.reverseCase(textCursor); editorUtil.reverseCase(textCursor);
} }
void ChangeCasePluginEditorInterface::slotUpperCase() void ChangeCasePluginEditorInterface::slotUpperCase()
{ {
mType = UpperCase; mType = UpperCase;
......
...@@ -88,7 +88,7 @@ void ZoomTextPluginEditorInterface::slotZoomReset() ...@@ -88,7 +88,7 @@ void ZoomTextPluginEditorInterface::slotZoomReset()
void ZoomTextPluginEditorInterface::exec() void ZoomTextPluginEditorInterface::exec()
{ {
switch(mType) { switch (mType) {
case Unknown: case Unknown:
qCDebug(KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type"; qCDebug(KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG) << " There is an error here. We can't call this plugin with unknown type";
break; break;
......
...@@ -32,7 +32,6 @@ public: ...@@ -32,7 +32,6 @@ public:
void exec() Q_DECL_OVERRIDE; void exec() Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE; bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
private Q_SLOTS: private Q_SLOTS:
void slotZoomOut(); void slotZoomOut();
......
...@@ -288,7 +288,7 @@ QString Parsha::findParshaName(int dayNumber, int kvia, bool isLeapYear, ...@@ -288,7 +288,7 @@ QString Parsha::findParshaName(int dayNumber, int kvia, bool isLeapYear,
if (!array) { /* Something is terribly wrong! */ if (!array) { /* Something is terribly wrong! */
buffer = QStringLiteral("??Parsha??"); buffer = QStringLiteral("??Parsha??");
qCWarning(KORGANIZER_HEBREWPLUGIN_LOG) << "Hebrew Plugin: Was not able to determine the 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; return buffer;
} }
......
...@@ -73,8 +73,8 @@ void RenderTest::testRender() ...@@ -73,8 +73,8 @@ void RenderTest::testRender()
fileWriter.begin(QString()); fileWriter.begin(QString());
fileWriter.queue(QStringLiteral("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" fileWriter.queue(QStringLiteral("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"
"<html>\n" "<html>\n"
"<body>\n")); "<body>\n"));
otp.parseObjectTree(msg.data()); otp.parseObjectTree(msg.data());
...@@ -87,12 +87,12 @@ void RenderTest::testRender() ...@@ -87,12 +87,12 @@ void RenderTest::testRender()
// validate xml and pretty-print for comparisson // validate xml and pretty-print for comparisson
// TODO add proper cmake check for xmllint and diff // TODO add proper cmake check for xmllint and diff
QStringList args = QStringList() QStringList args = QStringList()
<< QStringLiteral("--format") << QStringLiteral("--format")
<< QStringLiteral("--encode") << QStringLiteral("--encode")
<< QStringLiteral("UTF8") << QStringLiteral("UTF8")
<< QStringLiteral("--output") << QStringLiteral("--output")
<< htmlFileName << htmlFileName
<< outFileName; << outFileName;
QCOMPARE(QProcess::execute(QLatin1String("xmllint"), args), 0); QCOMPARE(QProcess::execute(QLatin1String("xmllint"), args), 0);
// get rid of system dependent or random paths // get rid of system dependent or random paths
...@@ -109,9 +109,9 @@ void RenderTest::testRender() ...@@ -109,9 +109,9 @@ void RenderTest::testRender()
// compare to reference file // compare to reference file
args = QStringList() args = QStringList()
<< QStringLiteral("-u") << QStringLiteral("-u")
<< referenceFileName << referenceFileName
<< htmlFileName; << htmlFileName;
QProcess proc; QProcess proc;
proc.setProcessChannelMode(QProcess::ForwardedChannels); proc.setProcessChannelMode(QProcess::ForwardedChannels);
proc.start(QStringLiteral("diff"), args); proc.start(QStringLiteral("diff"), args);
......
...@@ -37,13 +37,11 @@ public: ...@@ -37,13 +37,11 @@ public:
{ {
} }
MessageViewer::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE MessageViewer::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE {
{
return mWriter; return mWriter;
} }
MessageViewer::CSSHelperBase *cssHelper() Q_DECL_OVERRIDE MessageViewer::CSSHelperBase *cssHelper() Q_DECL_OVERRIDE {
{
return mCSSHelper; return mCSSHelper;
} }
...@@ -75,32 +73,27 @@ public: ...@@ -75,32 +73,27 @@ public:
{ {
return false; return false;
} }
void setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_DECL_OVERRIDE void setHtmlMode(MessageViewer::Util::HtmlMode mode) Q_DECL_OVERRIDE {
{
Q_UNUSED(mode) Q_UNUSED(mode)
} }
int levelQuote() const Q_DECL_OVERRIDE int levelQuote() const Q_DECL_OVERRIDE
{ {
return false; return false;
} }
const QTextCodec *overrideCodec() Q_DECL_OVERRIDE const QTextCodec *overrideCodec() Q_DECL_OVERRIDE {
{
return 0; return 0;
} }
QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE {
{
Q_UNUSED(message); Q_UNUSED(message);
return QString(); return QString();
} }
const MessageViewer::AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE const MessageViewer::AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE {
{
return MessageViewer::AttachmentStrategy::smart(); return MessageViewer::AttachmentStrategy::smart();
} }
QObject *sourceObject() Q_DECL_OVERRIDE QObject *sourceObject() Q_DECL_OVERRIDE {
{
return 0; return 0;
} }
bool autoImportKeys() const Q_DECL_OVERRIDE bool autoImportKeys() const Q_DECL_OVERRIDE
{ {
return false; return false;
...@@ -113,7 +106,7 @@ public: ...@@ -113,7 +106,7 @@ public:
{ {
return false; return false;
} }
private: private:
MessageViewer::HtmlWriter *mWriter; MessageViewer::HtmlWriter *mWriter;
MessageViewer::CSSHelperBase *mCSSHelper; MessageViewer::CSSHelperBase *mCSSHelper;
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "adblockmanagertest.h" #include "adblockmanagertest.h"
#include "../lib/adblockmanager.h" #include "../lib/adblockmanager.h"
#include <QTest> #include <QTest>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "adblockmanager.h" #include "adblockmanager.h"
#include <QUrl> #include <QUrl>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "adblockmanagertest.h" #include "adblockmanagertest.h"
#include <QTest> #include <QTest>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef ADBLOCKMANAGERTEST_H #ifndef ADBLOCKMANAGERTEST_H
#define ADBLOCKMANAGERTEST_H #define ADBLOCKMANAGERTEST_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