Commit 3859b10f authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent 45253b8a
......@@ -181,7 +181,7 @@ void MboxTest::testAppend()
QVERIFY(mbox.load(fileName()));
// First message added to an emtpy file should be at offset 0
// First message added to an empty file should be at offset 0
QCOMPARE(mbox.entries().size(), 0);
QCOMPARE(mbox.appendMessage(mMail1).messageOffset(), static_cast<quint64>(0));
QCOMPARE(mbox.entries().size(), 1);
......
......@@ -339,7 +339,7 @@ bool MBox::purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *
if (deletedEntries.size() == d->mEntries.size()) {
d->mEntries.clear();
d->mMboxFile.resize(0);
qCDebug(KMBOX_LOG) << "Purge comleted successfully, unlocking the file.";
qCDebug(KMBOX_LOG) << "Purge completed successfully, unlocking the file.";
return unlock();
}
......@@ -409,7 +409,7 @@ bool MBox::purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *
d->mMboxFile.resize(writeOffset);
d->mEntries = resultingEntryList;
qCDebug(KMBOX_LOG) << "Purge comleted successfully, unlocking the file.";
qCDebug(KMBOX_LOG) << "Purge completed successfully, unlocking the file.";
if (movedEntries) {
*movedEntries = tmpMovedEntries;
}
......@@ -666,7 +666,7 @@ bool MBox::unlock()
switch (d->mLockType) {
case ProcmailLockfile:
// QFile::remove returns true on succes so negate the result.
// QFile::remove returns true on success so negate the result.
if (!d->mLockFileName.isEmpty()) {
rc = !QFile(d->mLockFileName).remove();
} else {
......
......@@ -248,8 +248,8 @@ public:
/**
* Returns if the current access mode is set to readOnly.
*
* The access mode can either be set explicitely with setReadOnly() or
* implicitely by calling load() on a readOnly file.
* The access mode can either be set explicitly with setReadOnly() or
* implicitly by calling load() on a readOnly file.
*
* @since 4.14.5
*/
......
......@@ -66,7 +66,7 @@ public: /// Static helper methods
static QByteArray escapeFrom(const QByteArray &msg);
/**
* Generates a mbox message sperator line for given message.
* Generates a mbox message separator line for given message.
*/
static QByteArray mboxMessageSeparator(const QByteArray &msg);
......
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