Commit 0aa1380e authored by Alexander Potashev's avatar Alexander Potashev
Browse files

Fix typo in method name "unknowTagValue"

Test Plan: it compiles

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: cgiboudeaux, kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D25848
parent b1f17a90
......@@ -129,7 +129,7 @@ void SieveAction::unknownTag(const QStringRef &tag, QString &error)
error += i18n("An unknown tag \"%1\" was found during parsing action \"%2\".", *tag.string(), name()) + QLatin1Char('\n');
}
void SieveAction::unknowTagValue(const QString &tagValue, QString &error)
void SieveAction::unknownTagValue(const QString &tagValue, QString &error)
{
error += i18n("An unknown tag value \"%1\" was found during parsing action \"%2\".", tagValue, name()) + QLatin1Char('\n');
}
......
......@@ -55,7 +55,7 @@ public:
void setComment(const QString &comment);
void unknownTag(const QStringRef &tag, QString &error);
void unknowTagValue(const QString &tagValue, QString &error);
void unknownTagValue(const QString &tagValue, QString &error);
void tooManyArgument(const QStringRef &tagName, int index, int maxValue, QString &error);
void serverDoesNotSupportFeatures(const QString &feature, QString &error);
......
......@@ -61,7 +61,7 @@ bool SieveActionBreak::setParamWidgetValue(QXmlStreamReader &element, QWidget *w
QLineEdit *name = w->findChild<QLineEdit *>(QStringLiteral("name"));
name->setText(AutoCreateScriptUtil::strValue(element));
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveActionBreak::setParamWidgetValue unknown tagValue " << tagValue;
}
} else if (tagName == QLatin1String("str")) {
......
......@@ -88,7 +88,7 @@ bool SieveActionEnclose::setParamWidgetValue(QXmlStreamReader &element, QWidget
headers->setText(strValue);
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveActionEnclose::setParamWidgetValue unknown tag value:" << tagValue;
}
} else if (tagName == QLatin1String("str")) {
......
......@@ -86,7 +86,7 @@ bool SieveActionNotify::setParamWidgetValue(QXmlStreamReader &element, QWidget *
importance->setCode(strValue, name(), error);
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveActionNotify::setParamWidgetValue unknown tagValue" << tagValue;
}
} else if (tagName == QLatin1String("crlf")) {
......
......@@ -89,7 +89,7 @@ bool SieveActionRedirect::setParamWidgetValue(QXmlStreamReader &element, QWidget
serverDoesNotSupportFeatures(QStringLiteral("list"), error);
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveActionRedirect::setParamWidgetValue tagValue unknown" << tagValue;
}
} else if (tagName == QLatin1String("crlf")) {
......
......@@ -93,7 +93,7 @@ bool SieveActionReplace::setParamWidgetValue(QXmlStreamReader &element, QWidget
headers->setText(strValue);
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveActionReplace::setParamWidgetValue unknown tagValue " << tagValue;
}
} else if (tagName == QLatin1String("crlf")) {
......
......@@ -123,7 +123,7 @@ bool SieveActionVacation::setParamWidgetValue(QXmlStreamReader &element, QWidget
QLineEdit *subject = w->findChild<QLineEdit *>(QStringLiteral("subject"));
subject->setText(AutoCreateScriptUtil::strValue(element));
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << "SieveActionVacation::setParamWidgetValue unknown tagValue :" << tagValue;
}
} else if (tagName == QLatin1String("num")) {
......
......@@ -103,7 +103,7 @@ void SieveCondition::unknownTag(const QStringRef &tag, QString &error)
error += i18n("Unknown tag \"%1\" during parsing condition \"%2\"", *tag.string(), name()) + QLatin1Char('\n');
}
void SieveCondition::unknowTagValue(const QString &tagValue, QString &error)
void SieveCondition::unknownTagValue(const QString &tagValue, QString &error)
{
error += i18n("An unknown tag value \"%1\" was found during parsing condition \"%2\".", tagValue, name()) + QLatin1Char('\n');
}
......
......@@ -56,7 +56,7 @@ public:
Q_REQUIRED_RESULT virtual bool setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error);
void unknownTag(const QStringRef &tag, QString &error);
void unknowTagValue(const QString &tagValue, QString &error);
void unknownTagValue(const QString &tagValue, QString &error);
void tooManyArgument(const QStringRef &tagName, int index, int maxValue, QString &error);
void tooManyArgument(const QString &tagName, int index, int maxValue, QString &error);
void serverDoesNotSupportFeatures(const QString &feature, QString &error);
......
......@@ -152,7 +152,7 @@ bool SieveConditionSpamTest::setParamWidgetValue(QXmlStreamReader &element, QWid
qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue server has not percent support";
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveConditionSpamTest::setParamWidgetValue unknown tagvalue " << tagValue;
}
} else if (tagName == QLatin1String("str")) {
......
......@@ -126,7 +126,7 @@ bool SieveConditionVirusTest::setParamWidgetValue(QXmlStreamReader &element, QWi
}
}
} else {
unknowTagValue(tagValue, error);
unknownTagValue(tagValue, error);
qCDebug(LIBKSIEVE_LOG) << " SieveConditionVirusTest::setParamWidgetValue unknown tagValue " << tagValue;
}
} else if (tagName == QLatin1String("str")) {
......
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