Commit 03ae075b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent 23f7604b
Pipeline #33083 passed with stage
in 7 minutes and 9 seconds
......@@ -13,12 +13,9 @@
using namespace KMBox;
MBoxPrivate::MBoxPrivate(MBox *mbox)
: mInitialMboxFileSize(0)
, mMBox(mbox)
: mMBox(mbox)
, mSeparatorMatcher(QStringLiteral("^From .*[0-9][0-9]:[0-9][0-9]"))
, mLockType(MBox::None)
, mFileLocked(false)
, mReadOnly(false)
{
connect(&mUnlockTimer, &QTimer::timeout, this, &MBoxPrivate::unlockMBox);
}
......
......@@ -41,7 +41,7 @@ public:
MBoxEntry::List mEntries;
quint64 mInitialMboxFileSize = 0;
QString mLockFileName;
MBox *mMBox = nullptr;
MBox *const mMBox;
QFile mMboxFile;
QTimer mUnlockTimer;
QRegExp mSeparatorMatcher;
......
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