Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail Account Wizard
Commits
c8e8ab48
Commit
c8e8ab48
authored
Nov 24, 2021
by
Laurent Montel
Browse files
Modernize code
parent
9282953a
Pipeline
#100493
canceled with stage
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cryptopage.cpp
View file @
c8e8ab48
...
...
@@ -59,9 +59,7 @@ public:
job
->
start
(
mEmail
,
mName
);
}
~
KeyGenerationJob
()
override
{
}
~
KeyGenerationJob
()
override
=
default
;
Q_SIGNALS:
void
result
(
const
QString
&
fingerprint
);
...
...
@@ -231,9 +229,7 @@ public:
{
}
~
KeyImportJob
()
override
{
}
~
KeyImportJob
()
override
=
default
;
void
slotCancel
()
override
{
...
...
src/global.cpp
View file @
c8e8ab48
...
...
@@ -103,7 +103,7 @@ QString Global::assistantBasePath()
if
(
info
.
isAbsolute
())
{
return
info
.
absolutePath
()
+
QDir
::
separator
();
}
return
QString
()
;
return
{}
;
}
QString
Global
::
unpackAssistant
(
const
QUrl
&
remotePackageUrl
)
...
...
@@ -117,7 +117,7 @@ QString Global::unpackAssistant(const QUrl &remotePackageUrl)
KIO
::
Job
*
job
=
KIO
::
copy
(
remotePackageUrl
,
QUrl
::
fromLocalFile
(
localPackageFile
),
KIO
::
Overwrite
|
KIO
::
HideProgressInfo
);
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"downloading remote URL"
<<
remotePackageUrl
<<
"to"
<<
localPackageFile
;
if
(
!
job
->
exec
())
{
return
QString
()
;
return
{}
;
}
}
...
...
@@ -132,7 +132,7 @@ QString Global::unpackAssistant(const QUrl &remotePackageUrl)
return
dest
+
file
.
fileName
()
+
QLatin1Char
(
'/'
)
+
assistant
+
QLatin1Char
(
'/'
)
+
assistant
+
QLatin1String
(
".desktop"
);
}
else
{
qCDebug
(
ACCOUNTWIZARD_LOG
)
<<
"failed"
<<
getJob
->
errorString
();
return
QString
()
;
return
{}
;
}
}
...
...
src/identity.cpp
View file @
c8e8ab48
...
...
@@ -20,9 +20,7 @@ Identity::Identity(QObject *parent)
Q_ASSERT
(
m_identity
!=
nullptr
);
}
Identity
::~
Identity
()
{
}
Identity
::~
Identity
()
=
default
;
void
Identity
::
create
()
{
...
...
src/ispdb/ispdb.cpp
View file @
c8e8ab48
...
...
@@ -20,9 +20,7 @@ Ispdb::Ispdb(QObject *parent)
{
}
Ispdb
::~
Ispdb
()
{
}
Ispdb
::~
Ispdb
()
=
default
;
void
Ispdb
::
setEmail
(
const
QString
&
address
)
{
...
...
@@ -314,7 +312,7 @@ QString Ispdb::name(length l) const
}
else
if
(
l
==
Short
)
{
return
mDisplayShortName
;
}
else
{
return
QString
()
;
// make compiler happy. Not me.
return
{}
;
// make compiler happy. Not me.
}
}
...
...
src/ispdb/ispdb.h
View file @
c8e8ab48
...
...
@@ -162,9 +162,7 @@ private:
};
struct
Server
{
Server
()
{
}
Server
()
=
default
;
bool
isValid
()
const
{
...
...
@@ -180,9 +178,7 @@ struct Server {
QDebug
operator
<<
(
QDebug
d
,
const
Server
&
t
);
struct
identity
{
identity
()
{
}
identity
()
=
default
;
bool
isValid
()
const
{
...
...
src/key.cpp
View file @
c8e8ab48
...
...
@@ -38,9 +38,7 @@ Key::Key(QObject *parent)
{
}
Key
::~
Key
()
{
}
Key
::~
Key
()
=
default
;
void
Key
::
setKey
(
const
GpgME
::
Key
&
key
)
{
...
...
src/main.cpp
View file @
c8e8ab48
...
...
@@ -16,8 +16,8 @@ SPDX-License-Identifier: LGPL-2.0-or-later
#include
<KDBusService>
#include
<KLocalizedString>
#include
<cstdio>
#include
<iostream>
#include
<stdio.h>
#include
<KCrash>
#include
<QCommandLineOption>
...
...
src/restoreldapsettingsjob.cpp
View file @
c8e8ab48
...
...
@@ -16,9 +16,7 @@ RestoreLdapSettingsJob::RestoreLdapSettingsJob(QObject *parent)
{
}
RestoreLdapSettingsJob
::~
RestoreLdapSettingsJob
()
{
}
RestoreLdapSettingsJob
::~
RestoreLdapSettingsJob
()
=
default
;
void
RestoreLdapSettingsJob
::
start
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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