summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 12:59:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 12:59:51 (GMT)
commit8737ae1c67ef13d9469676fc5d0f9a14db5fbf13 (patch)
treee928a12183b0802097fabdd5b77ee541ceb9389b
parent60dacc62a19de908e29543902342530537765192 (diff)
Fix some clazy warning
-rw-r--r--src/newcertificatewizard/newcertificatewizard.cpp2
-rw-r--r--src/utils/gnupg-helper.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/newcertificatewizard/newcertificatewizard.cpp b/src/newcertificatewizard/newcertificatewizard.cpp
index 4d725be..ea0810a 100644
--- a/src/newcertificatewizard/newcertificatewizard.cpp
+++ b/src/newcertificatewizard/newcertificatewizard.cpp
@@ -1012,7 +1012,7 @@ private Q_SLOTS:
#endif
}
- void invokeMailer(const QString &to, const QString &subject, QString body, const QString &attachment)
+ void invokeMailer(const QString &to, const QString &subject, const QString &body, const QString &attachment)
{
qCDebug(KLEOPATRA_LOG) << "to:" << to << "subject:" << subject
<< "body:" << body << "attachment:" << attachment;
diff --git a/src/utils/gnupg-helper.cpp b/src/utils/gnupg-helper.cpp
index 540e4c0..29c616e 100644
--- a/src/utils/gnupg-helper.cpp
+++ b/src/utils/gnupg-helper.cpp
@@ -229,8 +229,8 @@ bool Kleo::engineIsVersion(int major, int minor, int patch, Engine engine)
const QString& Kleo::paperKeyInstallPath()
{
- static const QString pkPath = QStandardPaths::findExecutable("paperkey", QStringList() << QCoreApplication::applicationDirPath()).isEmpty() ?
- QStandardPaths::findExecutable("paperkey") :
- QStandardPaths::findExecutable("paperkey", QStringList() << QCoreApplication::applicationDirPath());
+ static const QString pkPath = QStandardPaths::findExecutable(QStringLiteral("paperkey"), QStringList() << QCoreApplication::applicationDirPath()).isEmpty() ?
+ QStandardPaths::findExecutable(QStringLiteral("paperkey")) :
+ QStandardPaths::findExecutable(QStringLiteral("paperkey"), QStringList() << QCoreApplication::applicationDirPath());
return pkPath;
}