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
PimCommon
Commits
227fdb31
Commit
227fdb31
authored
Oct 09, 2021
by
Laurent Montel
😁
Browse files
Use std::uniqueprt
parent
b65da108
Pipeline
#87193
passed with stage
in 10 minutes and 6 seconds
Changes
34
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pimcommon/autocorrection/widgets/lineeditwithautocorrection.cpp
View file @
227fdb31
...
...
@@ -35,10 +35,7 @@ LineEditWithAutoCorrection::LineEditWithAutoCorrection(QWidget *parent, const QS
{
}
LineEditWithAutoCorrection
::~
LineEditWithAutoCorrection
()
{
delete
d
;
}
LineEditWithAutoCorrection
::~
LineEditWithAutoCorrection
()
=
default
;
AutoCorrection
*
LineEditWithAutoCorrection
::
autocorrection
()
const
{
...
...
src/pimcommon/autocorrection/widgets/lineeditwithautocorrection.h
View file @
227fdb31
...
...
@@ -34,7 +34,7 @@ protected:
void
keyPressEvent
(
QKeyEvent
*
e
)
override
;
private:
LineEditWithAutoCorrectionPrivate
*
const
d
;
std
::
unique_ptr
<
LineEditWithAutoCorrectionPrivate
>
const
d
;
};
}
src/pimcommon/autocorrection/widgets/richtexteditwithautocorrection.cpp
View file @
227fdb31
...
...
@@ -36,10 +36,7 @@ RichTextEditWithAutoCorrection::RichTextEditWithAutoCorrection(QWidget *parent)
{
}
RichTextEditWithAutoCorrection
::~
RichTextEditWithAutoCorrection
()
{
delete
d
;
}
RichTextEditWithAutoCorrection
::~
RichTextEditWithAutoCorrection
()
=
default
;
void
RichTextEditWithAutoCorrection
::
setAutocorrection
(
PimCommon
::
AutoCorrection
*
autocorrect
)
{
...
...
src/pimcommon/autocorrection/widgets/richtexteditwithautocorrection.h
View file @
227fdb31
...
...
@@ -34,7 +34,7 @@ protected:
void
keyPressEvent
(
QKeyEvent
*
e
)
override
;
private:
RichTextEditWithAutoCorrectionPrivate
*
const
d
;
std
::
unique_ptr
<
RichTextEditWithAutoCorrectionPrivate
>
const
d
;
};
}
src/pimcommon/shareserviceurl/shareserviceurlmanager.cpp
View file @
227fdb31
...
...
@@ -114,10 +114,7 @@ ShareServiceUrlManager::ShareServiceUrlManager(QObject *parent)
d
->
initializeMenu
();
}
ShareServiceUrlManager
::~
ShareServiceUrlManager
()
{
delete
d
;
}
ShareServiceUrlManager
::~
ShareServiceUrlManager
()
=
default
;
KActionMenu
*
ShareServiceUrlManager
::
menu
()
const
{
...
...
src/pimcommon/shareserviceurl/shareserviceurlmanager.h
View file @
227fdb31
...
...
@@ -9,6 +9,7 @@
#include
"pimcommon_export.h"
#include
<QObject>
#include
<QUrl>
#include
<memory>
class
KActionMenu
;
class
QAction
;
...
...
@@ -40,7 +41,7 @@ Q_SIGNALS:
void
serviceUrlSelected
(
PimCommon
::
ShareServiceUrlManager
::
ServiceType
type
);
private:
ShareServiceUrlManagerPrivate
*
const
d
;
std
::
unique_ptr
<
ShareServiceUrlManagerPrivate
>
const
d
;
};
}
Q_DECLARE_METATYPE
(
PimCommon
::
ShareServiceUrlManager
::
ServiceType
)
src/pimcommonakonadi/acl/aclentrydialog.cpp
View file @
227fdb31
...
...
@@ -25,10 +25,10 @@
using
namespace
PimCommon
;
class
AclEntryDialog
::
Private
class
AclEntryDialog
::
AclEntryDialog
Private
{
public:
Private
(
AclEntryDialog
*
qq
)
AclEntryDialog
Private
(
AclEntryDialog
*
qq
)
:
q
(
qq
)
{
}
...
...
@@ -44,12 +44,12 @@ public:
QPushButton
*
mOkButton
=
nullptr
;
};
void
AclEntryDialog
::
Private
::
slotChanged
()
void
AclEntryDialog
::
AclEntryDialog
Private
::
slotChanged
()
{
mOkButton
->
setEnabled
(
!
mUserIdLineEdit
->
text
().
trimmed
().
isEmpty
()
&&
mButtonGroup
->
checkedButton
()
!=
nullptr
);
}
void
AclEntryDialog
::
Private
::
slotSelectAddresses
()
void
AclEntryDialog
::
AclEntryDialog
Private
::
slotSelectAddresses
()
{
Akonadi
::
EmailAddressSelectionDialog
dlg
;
...
...
@@ -64,7 +64,7 @@ void AclEntryDialog::Private::slotSelectAddresses()
AclEntryDialog
::
AclEntryDialog
(
QWidget
*
parent
)
:
QDialog
(
parent
)
,
d
(
new
Private
(
this
))
,
d
(
new
AclEntryDialog
Private
(
this
))
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
auto
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
,
this
);
...
...
@@ -130,10 +130,7 @@ AclEntryDialog::AclEntryDialog(QWidget *parent)
d
->
mUserIdLineEdit
->
setFocus
();
}
AclEntryDialog
::~
AclEntryDialog
()
{
delete
d
;
}
AclEntryDialog
::~
AclEntryDialog
()
=
default
;
void
AclEntryDialog
::
setUserId
(
const
QString
&
userId
)
{
...
...
src/pimcommonakonadi/acl/aclentrydialog_p.h
View file @
227fdb31
...
...
@@ -55,8 +55,8 @@ public:
private:
//@cond PRIVATE
class
Private
;
Private
*
const
d
;
class
AclEntryDialog
Private
;
std
::
unique_ptr
<
AclEntryDialog
Private
>
const
d
;
//@endcond
};
...
...
src/pimcommonakonadi/acl/aclmanager.cpp
View file @
227fdb31
...
...
@@ -146,10 +146,10 @@ private:
QVector
<
QPair
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>>
mRights
;
};
class
Q_DECL_HIDDEN
PimCommon
::
AclManager
::
Private
class
Q_DECL_HIDDEN
PimCommon
::
AclManager
::
AclManager
Private
{
public:
Private
(
AclManager
*
qq
)
AclManager
Private
(
AclManager
*
qq
)
:
q
(
qq
)
{
mAddAction
=
new
QAction
(
i18n
(
"Add Entry..."
),
q
);
...
...
@@ -177,7 +177,7 @@ public:
});
}
~
Private
()
~
AclManager
Private
()
{
}
...
...
@@ -358,14 +358,11 @@ public:
AclManager
::
AclManager
(
QObject
*
parent
)
:
QObject
(
parent
)
,
d
(
new
Private
(
this
))
,
d
(
new
AclManager
Private
(
this
))
{
}
AclManager
::~
AclManager
()
{
delete
d
;
}
AclManager
::~
AclManager
()
=
default
;
void
AclManager
::
setCollection
(
const
Akonadi
::
Collection
&
collection
)
{
...
...
src/pimcommonakonadi/acl/aclmanager.h
View file @
227fdb31
...
...
@@ -97,8 +97,8 @@ Q_SIGNALS:
private:
//@cond PRIVATE
class
Private
;
Private
*
const
d
;
class
AclManager
Private
;
std
::
unique_ptr
<
AclManager
Private
>
const
d
;
//@endcond
};
}
...
...
src/pimcommonakonadi/acl/collectionaclpage.cpp
View file @
227fdb31
...
...
@@ -35,10 +35,7 @@ CollectionAclPage::CollectionAclPage(QWidget *parent)
init
();
}
CollectionAclPage
::~
CollectionAclPage
()
{
delete
d
;
}
CollectionAclPage
::~
CollectionAclPage
()
=
default
;
void
CollectionAclPage
::
init
()
{
...
...
src/pimcommonakonadi/acl/collectionaclpage.h
View file @
227fdb31
...
...
@@ -34,7 +34,7 @@ protected:
void
init
();
private:
CollectionAclPagePrivate
*
const
d
;
std
::
unique_ptr
<
CollectionAclPagePrivate
>
const
d
;
};
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY
(
CollectionAclPageFactory
,
CollectionAclPage
)
}
...
...
src/pimcommonakonadi/acl/imapaclattribute.cpp
View file @
227fdb31
...
...
@@ -41,10 +41,7 @@ ImapAclAttribute::ImapAclAttribute(const QMap<QByteArray, KIMAP::Acl::Rights> &r
d
->
mOldRights
=
oldRights
;
}
ImapAclAttribute
::~
ImapAclAttribute
()
{
delete
d
;
}
ImapAclAttribute
::~
ImapAclAttribute
()
=
default
;
void
ImapAclAttribute
::
setRights
(
const
QMap
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>
&
rights
)
{
...
...
src/pimcommonakonadi/acl/imapaclattribute.h
View file @
227fdb31
...
...
@@ -20,6 +20,7 @@
#include
<QMap>
#include
<memory>
namespace
PimCommon
{
class
ImapAclAttributePrivate
;
...
...
@@ -45,7 +46,7 @@ public:
bool
operator
==
(
const
ImapAclAttribute
&
other
)
const
;
private:
ImapAclAttributePrivate
*
const
d
;
std
::
unique_ptr
<
ImapAclAttributePrivate
>
const
d
;
QMap
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>
mRights
;
QMap
<
QByteArray
,
KIMAP
::
Acl
::
Rights
>
mOldRights
;
KIMAP
::
Acl
::
Rights
mMyRights
;
...
...
src/pimcommonakonadi/addressline/completionconfiguredialog/completionconfiguredialog.cpp
View file @
227fdb31
...
...
@@ -74,7 +74,6 @@ CompletionConfigureDialog::CompletionConfigureDialog(QWidget *parent)
CompletionConfigureDialog
::~
CompletionConfigureDialog
()
{
writeConfig
();
delete
d
;
}
void
CompletionConfigureDialog
::
readConfig
()
...
...
src/pimcommonakonadi/addressline/completionconfiguredialog/completionconfiguredialog.h
View file @
227fdb31
...
...
@@ -40,7 +40,7 @@ private:
void
slotSave
();
void
readConfig
();
void
writeConfig
();
CompletionConfigureDialogPrivate
*
const
d
;
std
::
unique_ptr
<
CompletionConfigureDialogPrivate
>
const
d
;
};
}
src/pimcommonakonadi/addressline/completionorder/completionordereditor.cpp
View file @
227fdb31
...
...
@@ -65,7 +65,6 @@ CompletionOrderEditor::CompletionOrderEditor(KLDAP::LdapClientSearch *ldapSearch
CompletionOrderEditor
::~
CompletionOrderEditor
()
{
writeConfig
();
delete
d
;
}
void
CompletionOrderEditor
::
readConfig
()
...
...
src/pimcommonakonadi/addressline/completionorder/completionordereditor.h
View file @
227fdb31
...
...
@@ -36,7 +36,7 @@ private Q_SLOTS:
private:
void
readConfig
();
void
writeConfig
();
CompletionOrderEditorPrivate
*
const
d
;
std
::
unique_ptr
<
CompletionOrderEditorPrivate
>
const
d
;
};
}
// namespace
src/pimcommonakonadi/addressline/plugins/addressesslineeditpluginmanager.cpp
View file @
227fdb31
...
...
@@ -110,10 +110,7 @@ AddressessLineEditPluginManager::AddressessLineEditPluginManager(QObject *parent
{
}
AddressessLineEditPluginManager
::~
AddressessLineEditPluginManager
()
{
delete
d
;
}
AddressessLineEditPluginManager
::~
AddressessLineEditPluginManager
()
=
default
;
AddressessLineEditPluginManager
*
AddressessLineEditPluginManager
::
self
()
{
...
...
src/pimcommonakonadi/addressline/plugins/addressesslineeditpluginmanager.h
View file @
227fdb31
...
...
@@ -8,6 +8,7 @@
#include
"pimcommonakonadi_export.h"
#include
<QObject>
#include
<memory>
namespace
PimCommon
{
...
...
@@ -30,7 +31,7 @@ public:
QVector
<
PimCommon
::
AddressessLineEditAbstractPlugin
*>
pluginsList
()
const
;
private:
AddressessLineEditPluginManagerPrivate
*
const
d
;
std
::
unique_ptr
<
AddressessLineEditPluginManagerPrivate
>
const
d
;
};
}
Prev
1
2
Next
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