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

Port to QVector

parent 37fb0c26
Pipeline #23174 passed with stage
in 7 minutes and 7 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.40")
set(PIM_VERSION "5.14.41")
project(KMbox VERSION ${PIM_VERSION})
......
......@@ -311,7 +311,7 @@ static bool lessThanByOffset(const MBoxEntry &left, const MBoxEntry &right)
return left.messageOffset() < right.messageOffset();
}
bool MBox::purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *movedEntries)
bool MBox::purge(const MBoxEntry::List &deletedEntries, QVector<MBoxEntry::Pair> *movedEntries)
{
if (d->mMboxFile.fileName().isEmpty() || d->mReadOnly) {
return false; // No file loaded yet or it's readOnly
......@@ -348,7 +348,7 @@ bool MBox::purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *
quint64 writeOffset = 0;
bool writeOffSetInitialized = false;
MBoxEntry::List resultingEntryList;
QList<MBoxEntry::Pair> tmpMovedEntries;
QVector<MBoxEntry::Pair> tmpMovedEntries;
quint64 origFileSize = d->mMboxFile.size();
......
......@@ -136,7 +136,7 @@ public:
* loaded, false otherwise. If the latter, the physical file has
* not changed.
*/
Q_REQUIRED_RESULT bool purge(const MBoxEntry::List &deletedEntries, QList<MBoxEntry::Pair> *movedEntries = nullptr);
Q_REQUIRED_RESULT bool purge(const MBoxEntry::List &deletedEntries, QVector<MBoxEntry::Pair> *movedEntries = nullptr);
/**
* Reads the entire message from the file for the given mbox @p entry. If the
......
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