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
PIM Messagelib
Commits
c4408fcd
Commit
c4408fcd
authored
Oct 09, 2021
by
Laurent Montel
😁
Browse files
Use more unique_ptr
parent
0c8bd021
Pipeline
#87182
passed with stage
in 43 minutes and 29 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecore/src/attachment/attachmentcompressjob.cpp
View file @
c4408fcd
...
...
@@ -89,10 +89,7 @@ AttachmentCompressJob::AttachmentCompressJob(const AttachmentPart::Ptr &part, QO
d
->
mOriginalPart
=
part
;
}
AttachmentCompressJob
::~
AttachmentCompressJob
()
{
delete
d
;
}
AttachmentCompressJob
::~
AttachmentCompressJob
()
=
default
;
void
AttachmentCompressJob
::
start
()
{
...
...
messagecore/src/attachment/attachmentcompressjob.h
View file @
c4408fcd
...
...
@@ -11,6 +11,7 @@
#include
"attachmentpart.h"
#include
<KJob>
#include
<memory>
namespace
MessageCore
{
...
...
@@ -67,7 +68,7 @@ public:
private:
//@cond PRIVATE
class
Private
;
Private
*
const
d
;
std
::
unique_ptr
<
Private
>
const
d
;
//@endcond
};
}
...
...
messagecore/src/attachment/attachmentfrommimecontentjob.cpp
View file @
c4408fcd
...
...
@@ -15,7 +15,7 @@
using
namespace
MessageCore
;
using
KMime
::
Content
;
class
Q_DECL_HIDDEN
MessageCore
::
AttachmentFromMimeContentJob
::
Private
class
Q_DECL_HIDDEN
MessageCore
::
AttachmentFromMimeContentJob
::
AttachmentFromMimeContentJob
Private
{
public:
const
Content
*
mMimeContent
=
nullptr
;
...
...
@@ -23,15 +23,12 @@ public:
AttachmentFromMimeContentJob
::
AttachmentFromMimeContentJob
(
const
Content
*
content
,
QObject
*
parent
)
:
AttachmentLoadJob
(
parent
)
,
d
(
new
Private
)
,
d
(
new
AttachmentFromMimeContentJob
Private
)
{
d
->
mMimeContent
=
content
;
}
AttachmentFromMimeContentJob
::~
AttachmentFromMimeContentJob
()
{
delete
d
;
}
AttachmentFromMimeContentJob
::~
AttachmentFromMimeContentJob
()
=
default
;
const
Content
*
AttachmentFromMimeContentJob
::
mimeContent
()
const
{
...
...
messagecore/src/attachment/attachmentfrommimecontentjob.h
View file @
c4408fcd
...
...
@@ -9,7 +9,7 @@
#include
"messagecore_private_export.h"
#include
"attachmentloadjob.h"
#include
<memory>
namespace
KMime
{
class
Content
;
...
...
@@ -55,8 +55,8 @@ protected Q_SLOTS:
private:
//@cond PRIVATE
class
Private
;
Private
*
const
d
;
class
AttachmentFromMimeContentJob
Private
;
std
::
unique_ptr
<
AttachmentFromMimeContentJob
Private
>
const
d
;
//@endcond
};
}
...
...
messageviewer/src/scamdetection/scamattribute.cpp
View file @
c4408fcd
...
...
@@ -27,10 +27,7 @@ ScamAttribute::ScamAttribute()
{
}
ScamAttribute
::~
ScamAttribute
()
{
delete
d
;
}
ScamAttribute
::~
ScamAttribute
()
=
default
;
ScamAttribute
*
ScamAttribute
::
clone
()
const
{
...
...
messageviewer/src/scamdetection/scamattribute.h
View file @
c4408fcd
...
...
@@ -8,6 +8,7 @@
#pragma once
#include
<Akonadi/Attribute>
#include
<memory>
namespace
MessageViewer
{
class
ScamAttributePrivate
;
...
...
@@ -30,7 +31,7 @@ public:
private:
friend
class
ScamAttributePrivate
;
ScamAttributePrivate
*
const
d
;
std
::
unique_ptr
<
ScamAttributePrivate
>
const
d
;
};
}
mimetreeparser/src/temporaryfile/attachmenttemporaryfilesdirs.cpp
View file @
c4408fcd
...
...
@@ -31,10 +31,7 @@ AttachmentTemporaryFilesDirs::AttachmentTemporaryFilesDirs(QObject *parent)
{
}
AttachmentTemporaryFilesDirs
::~
AttachmentTemporaryFilesDirs
()
{
delete
d
;
}
AttachmentTemporaryFilesDirs
::~
AttachmentTemporaryFilesDirs
()
=
default
;
void
AttachmentTemporaryFilesDirs
::
setDelayRemoveAllInMs
(
int
ms
)
{
...
...
mimetreeparser/src/temporaryfile/attachmenttemporaryfilesdirs.h
View file @
c4408fcd
...
...
@@ -9,7 +9,7 @@
#include
"mimetreeparser_export.h"
#include
<QObject>
#include
<QStringList>
#include
<memory>
namespace
MimeTreeParser
{
class
AttachmentTemporaryFilesDirsPrivate
;
...
...
@@ -38,7 +38,7 @@ private Q_SLOTS:
void
slotRemoveTempFiles
();
private:
AttachmentTemporaryFilesDirsPrivate
*
const
d
;
std
::
unique_ptr
<
AttachmentTemporaryFilesDirsPrivate
>
const
d
;
};
}
Write
Preview
Supports
Markdown
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