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

const'ify pointer

parent 003bb0cc
Pipeline #170580 passed with stage
in 2 minutes and 21 seconds
......@@ -13,8 +13,8 @@
LogCreatingResource::LogCreatingResource(QObject *parent)
: QObject(parent)
, mTmpLogFile(new QTemporaryFile(this))
{
mTmpLogFile = new QTemporaryFile(this);
#ifdef REMOVE_TEMPORARY_FILE
mTmpLogFile->setAutoRemove(true);
#else
......
......@@ -22,6 +22,6 @@ public:
void logRegisterSpecialCollection(Akonadi::SpecialMailCollections::Type type, qint64 colId);
private:
QTemporaryFile *mTmpLogFile = nullptr;
QTemporaryFile *const mTmpLogFile;
int mResourceIndex = 0;
};
Supports Markdown
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