Commit 82c2f4d1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use std::unique_ptr

parent eb0f3bed
Pipeline #48144 failed with stage
in 10 minutes and 21 seconds
......@@ -43,7 +43,6 @@ MBox::~MBox()
d->close();
delete d;
}
// Appended entries works as follows: When an mbox file is loaded from disk,
......
......@@ -9,6 +9,7 @@
#include "kmbox_export.h"
#include "mboxentry.h"
#include <memory>
#include <kmime/kmime_message.h>
......@@ -245,8 +246,7 @@ public:
private:
//@cond PRIVATE
Q_DISABLE_COPY(MBox)
friend class MBoxPrivate;
MBoxPrivate *const d;
std::unique_ptr<class MBoxPrivate> const d;
//@endcond
};
}
......
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