Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
80a9c0d0
Commit
80a9c0d0
authored
May 12, 2021
by
Ingo Klöcker
Browse files
Use std::unique_ptr for pimpl
GnuPG-bug-id: 5245
parent
00c7c920
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dialogs/certificatedetailswidget.cpp
View file @
80a9c0d0
...
...
@@ -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
,
...
...
src/dialogs/certificatedetailswidget.h
View file @
80a9c0d0
...
...
@@ -7,6 +7,7 @@
#include <QWidget>
#include <memory>
#include <vector>
namespace
GpgME
{
...
...
@@ -28,7 +29,7 @@ public:
private:
class
Private
;
const
QScopedPointe
r
<
Private
>
d
;
std
::
unique_pt
r
<
Private
>
d
;
// Windows QGpgME new style connect problem makes this necessary.
Q_PRIVATE_SLOT
(
d
,
void
keyListDone
(
const
GpgME
::
KeyListResult
&
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment