Commit 80a9c0d0 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Use std::unique_ptr for pimpl

GnuPG-bug-id: 5245
parent 00c7c920
......@@ -521,8 +521,8 @@ void CertificateDetailsWidget::Private::smimeLinkActivated(const QString &link)
}
CertificateDetailsWidget::CertificateDetailsWidget(QWidget *parent)
: QWidget(parent)
, d(new Private(this))
: QWidget{parent}
, d{std::make_unique<Private>(this)}
{
d->ui.setupUi(this);
......@@ -555,9 +555,7 @@ CertificateDetailsWidget::CertificateDetailsWidget(QWidget *parent)
this, [this]() { d->keysMayHaveChanged(); });
}
CertificateDetailsWidget::~CertificateDetailsWidget()
{
}
CertificateDetailsWidget::~CertificateDetailsWidget() = default;
void CertificateDetailsWidget::Private::keyListDone(const GpgME::KeyListResult &,
const std::vector<GpgME::Key> &keys,
......
......@@ -7,6 +7,7 @@
#include <QWidget>
#include <memory>
#include <vector>
namespace GpgME {
......@@ -28,7 +29,7 @@ public:
private:
class Private;
const QScopedPointer<Private> d;
std::unique_ptr<Private> d;
// Windows QGpgME new style connect problem makes this necessary.
Q_PRIVATE_SLOT(d, void keyListDone(const GpgME::KeyListResult &,
......
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