Commit d185b026 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Pedantic

parent e02521eb
Pipeline #42051 passed with stage
in 20 minutes and 27 seconds
......@@ -422,7 +422,7 @@ public:
void commandStart(const QString &identifier, int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
write("<command>");
++indent;
write("identifier", identifier);
......@@ -430,7 +430,7 @@ public:
void commandEnd(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
--indent;
write("</command>");
}
......@@ -462,14 +462,14 @@ public:
void blockStart(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
write("<block>");
++indent;
}
void blockEnd(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
--indent;
write("</block>");
}
......@@ -589,7 +589,7 @@ public:
void commandStart(const QString &identifier, int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
checkIs(CommandStart);
checkEquals(identifier);
++mNextResponse;
......@@ -597,7 +597,7 @@ public:
void commandEnd(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
checkIs(CommandEnd);
++mNextResponse;
}
......@@ -629,14 +629,14 @@ public:
void blockStart(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
checkIs(BlockStart);
++mNextResponse;
}
void blockEnd(int lineNumber) override
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
checkIs(BlockEnd);
++mNextResponse;
}
......
......@@ -67,7 +67,7 @@ QString SieveCommonActionCondition::code(QWidget *) const
QStringList SieveCommonActionCondition::needRequires(QWidget *parent) const
{
Q_UNUSED(parent);
Q_UNUSED(parent)
return QStringList();
}
......
......@@ -27,7 +27,7 @@ RegexpEditorLineEdit::~RegexpEditorLineEdit()
void RegexpEditorLineEdit::switchToRegexpEditorLineEdit(bool regexpEditor)
{
Q_UNUSED(regexpEditor);
Q_UNUSED(regexpEditor)
//Nothing here
}
......
......@@ -57,7 +57,7 @@ void SieveConditionWidget::setFilterCondition(QWidget *widget)
void SieveConditionWidget::generatedScript(QString &script, QStringList &required, bool inForEveryPartLoop)
{
Q_UNUSED(inForEveryPartLoop);
Q_UNUSED(inForEveryPartLoop)
const int index = mComboBox->currentIndex();
if (index != mComboBox->count() - 1) {
KSieveUi::SieveCondition *widgetCondition = mConditionList.at(mComboBox->currentIndex());
......
......@@ -67,7 +67,7 @@ void SieveForEveryPartWidget::slotHelp()
void SieveForEveryPartWidget::generatedScript(QString &script, QStringList &required, bool inForEveryPartLoop)
{
Q_UNUSED(inForEveryPartLoop);
Q_UNUSED(inForEveryPartLoop)
if (mForLoop->isChecked()) {
required << QStringLiteral("foreverypart");
const QString loopName = mName->text();
......
......@@ -223,7 +223,7 @@ void SieveIncludeWidget::slotHelp()
void SieveIncludeWidget::generatedScript(QString &script, QStringList &requireModules, bool inForEveryPartLoop)
{
Q_UNUSED(inForEveryPartLoop);
Q_UNUSED(inForEveryPartLoop)
QString result;
QStringList lst;
mIncludeLister->generatedScript(result, lst);
......
......@@ -165,8 +165,8 @@ void FindBarBase::setFoundMatch(bool match)
void FindBarBase::searchText(bool backward, bool isAutoSearch)
{
Q_UNUSED(backward);
Q_UNUSED(isAutoSearch);
Q_UNUSED(backward)
Q_UNUSED(isAutoSearch)
}
void FindBarBase::addToCompletion(const QString &text)
......
......@@ -115,6 +115,6 @@ void SieveEditorWebEngineView::contextMenuEvent(QContextMenuEvent *ev)
QWebEngineView *SieveEditorWebEngineView::createWindow(QWebEnginePage::WebWindowType type)
{
Q_UNUSED(type);
Q_UNUSED(type)
return this;
}
......@@ -77,7 +77,7 @@ void CheckScriptJob::slotPutCheckSyntaxResult(KManageSieve::SieveJob *job, bool
void CheckScriptJob::slotRestoreFile(KManageSieve::SieveJob *job, bool success)
{
Q_UNUSED(job);
Q_UNUSED(job)
if (!success) {
qCWarning(LIBKSIEVE_LOG) << "Script can't be restored" << d->mUrl;
}
......
......@@ -63,8 +63,8 @@ void RenameScriptJob::start()
void RenameScriptJob::slotGetResult(KManageSieve::SieveJob *job, bool success, const QString &script, bool isActive)
{
Q_UNUSED(job);
Q_UNUSED(isActive);
Q_UNUSED(job)
Q_UNUSED(isActive)
if (!success) {
Q_EMIT finished(d->mOldUrl, d->mNewUrl, i18n("An error occurred during loading the sieve script."), false);
deleteLater();
......@@ -80,7 +80,7 @@ void RenameScriptJob::slotGetResult(KManageSieve::SieveJob *job, bool success, c
void RenameScriptJob::slotPutScript(KManageSieve::SieveJob *job, bool success)
{
Q_UNUSED(job);
Q_UNUSED(job)
if (!success) {
Q_EMIT finished(d->mOldUrl, d->mNewUrl, i18n("An error occurred during saving the sieve script."), false);
deleteLater();
......@@ -92,7 +92,7 @@ void RenameScriptJob::slotPutScript(KManageSieve::SieveJob *job, bool success)
void RenameScriptJob::slotDeleteResult(KManageSieve::SieveJob *job, bool success)
{
Q_UNUSED(job);
Q_UNUSED(job)
Q_EMIT finished(d->mOldUrl, d->mNewUrl, success ? QString() : i18n("An error occurred during deleting the sieve script."), success);
deleteLater();
}
......@@ -68,7 +68,7 @@ void XMLPrintingScriptBuilder::numberArgument(unsigned long number, char quantif
void XMLPrintingScriptBuilder::commandStart(const QString &identifier, int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
if (identifier == QLatin1String("else") ||
identifier == QLatin1String("break") ||
identifier == QLatin1String("require") ||
......@@ -85,7 +85,7 @@ void XMLPrintingScriptBuilder::commandStart(const QString &identifier, int lineN
void XMLPrintingScriptBuilder::commandEnd(int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
mStream->writeEndElement();
}
......@@ -112,13 +112,13 @@ void XMLPrintingScriptBuilder::testListEnd()
void XMLPrintingScriptBuilder::blockStart(int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
mStream->writeStartElement(QStringLiteral("block"));
}
void XMLPrintingScriptBuilder::blockEnd(int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
mStream->writeEndElement();
}
......
......@@ -127,7 +127,7 @@ QList<int> SieveScriptDebuggerFrontEndWidget::splitterSizes() const
void SieveScriptDebuggerFrontEndWidget::slotEmailChanged(const QString &text)
{
Q_UNUSED(text);
Q_UNUSED(text)
updateDebugButton();
}
......
......@@ -19,7 +19,7 @@ KSieveUi::Legacy::VacationDataExtractor::~VacationDataExtractor()
void KSieveUi::Legacy::VacationDataExtractor::commandStart(const QString &identifier, int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
qCDebug(LIBKSIEVE_LOG) << "( \"" << identifier << "\" )";
if (identifier != QLatin1String("vacation")) {
return;
......@@ -30,7 +30,7 @@ void KSieveUi::Legacy::VacationDataExtractor::commandStart(const QString &identi
void KSieveUi::Legacy::VacationDataExtractor::commandEnd(int lineNumber)
{
Q_UNUSED(lineNumber);
Q_UNUSED(lineNumber)
qCDebug(LIBKSIEVE_LOG);
if (mContext != None && mContext != VacationEnd) {
mContext = VacationEnd;
......
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