Commit 324f129c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor clean

parent 2993258e
Pipeline #24065 canceled with stage
......@@ -66,7 +66,9 @@ void AttachmentFromFolderJob::Private::compressFolder()
}
mZip->setCompression(mCompression);
const QString filename = q->url().fileName();
mZip->writeDir(filename, QString(), QString(), 040755, mArchiveTime, mArchiveTime, mArchiveTime);
if (!mZip->writeDir(filename, QString(), QString(), 040755, mArchiveTime, mArchiveTime, mArchiveTime)) {
qCWarning(MESSAGECORE_LOG) << " Impossible to write file " << fileName;
}
qCDebug(MESSAGECORE_LOG) << "writing root directory : " << filename;
addEntity(QDir(q->url().path()).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot
|QDir::NoSymLinks | QDir::Files, QDir::DirsFirst), fileName + QLatin1Char('/'));
......
......@@ -67,13 +67,6 @@ class Q_DECL_HIDDEN MessageCore::AttachmentPart::Private
{
public:
Private()
: mEncoding(KMime::Headers::CE7Bit)
, mSize(-1)
, mIsInline(false)
, mAutoEncoding(true)
, mCompressed(false)
, mToEncrypt(false)
, mToSign(false)
{
}
......@@ -84,13 +77,13 @@ public:
QByteArray mCharset;
QByteArray mMimeType;
QByteArray mData;
KMime::Headers::contentEncoding mEncoding;
qint64 mSize;
bool mIsInline;
bool mAutoEncoding;
bool mCompressed;
bool mToEncrypt;
bool mToSign;
KMime::Headers::contentEncoding mEncoding = KMime::Headers::CE7Bit;
qint64 mSize = -1;
bool mIsInline = false;
bool mAutoEncoding = true;
bool mCompressed = false;
bool mToEncrypt = false;
bool mToSign = false;
};
AttachmentPart::AttachmentPart()
......
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