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

Astyle kdelibs

parent fe463669
......@@ -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;
......
......@@ -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;
......
......@@ -32,7 +32,6 @@ public:
void exec() Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotZoomOut();
......
......@@ -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;
}
......
......@@ -73,8 +73,8 @@ void RenderTest::testRender()
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"
"<html>\n"
"<body>\n"));
"<html>\n"
"<body>\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);
......
......@@ -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;
......
......@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "adblockmanagertest.h"
#include "../lib/adblockmanager.h"
#include <QTest>
......
......@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "adblockmanager.h"
#include <QUrl>
......
......@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "adblockmanagertest.h"
#include <QTest>
......
......@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef 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