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
KDE PIM Add-ons
Commits
43e88fbb
Commit
43e88fbb
authored
May 01, 2021
by
Laurent Montel
😁
Browse files
Modernize code
parent
eac7e8f9
Pipeline
#60345
passed with stage
in 52 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/importexportplugins/csv/import/templateselectiondialog.cpp
View file @
43e88fbb
...
...
@@ -26,11 +26,11 @@
#include <QPushButton>
#include <QStyledItemDelegate>
typedef
struct
{
using
TemplateInfo
=
struct
{
QString
displayName
;
QString
fileName
;
bool
isDeletable
=
false
;
}
TemplateInfo
;
};
class
TemplatesModel
:
public
QAbstractTableModel
{
...
...
kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp
View file @
43e88fbb
...
...
@@ -202,7 +202,7 @@ void GMXImportExportPluginInterface::doExport(QFile *fp, const KContacts::Addres
QTextStream
t
(
fp
);
t
.
setCodec
(
"ISO 8859-1"
);
typedef
QMap
<
int
,
const
KContacts
::
Addressee
*>
AddresseeMap
;
using
AddresseeMap
=
QMap
<
int
,
const
KContacts
::
Addressee
*>
;
AddresseeMap
addresseeMap
;
const
KContacts
::
Addressee
*
addressee
=
nullptr
;
...
...
@@ -447,7 +447,7 @@ void GMXImportExportPluginInterface::importGMX()
QStringList
itemList
;
QMap
<
QString
,
QString
>
categoriesOfAddressee
;
typedef
QMap
<
QString
,
KContacts
::
Addressee
*>
AddresseeMap
;
using
AddresseeMap
=
QMap
<
QString
,
KContacts
::
Addressee
*>
;
AddresseeMap
addresseeMap
;
// "Address_id,Nickname,Firstname,Lastname,Title,Birthday,Comments,
...
...
kmail/editorsendcheckplugins/checkbeforesend/autotests/checkduplicateemailsjobtest.cpp
View file @
43e88fbb
...
...
@@ -98,7 +98,7 @@ void CheckDuplicateEmailsJobTest::shouldReturnEmails_data()
void
CheckDuplicateEmailsJobTest
::
shouldReturnEmails
()
{
QFETCH
(
QStringList
,
emails
);
typedef
QMap
<
QString
,
int
>
mapEmails
;
using
mapEmails
=
QMap
<
QString
,
int
>
;
QFETCH
(
mapEmails
,
result
);
CheckDuplicateEmailsJob
job
;
job
.
setEmails
(
emails
);
...
...
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