From 62e770971786f272ecc079b78b11e798ec699d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 29 Apr 2022 10:46:23 +0200 Subject: [PATCH] qt: Minor refactoring * lang/qt/src/qgpgmerefreshsmimekeysjob.cpp: Use namespace QGpgME. -- GnuPG-bug-id: 5951 --- lang/qt/src/qgpgmerefreshsmimekeysjob.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp b/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp index e300454b..1cb7abe3 100644 --- a/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp +++ b/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp @@ -52,7 +52,9 @@ #include -QGpgME::QGpgMERefreshSMIMEKeysJob::QGpgMERefreshSMIMEKeysJob() +using namespace QGpgME; + +QGpgMERefreshSMIMEKeysJob::QGpgMERefreshSMIMEKeysJob() : RefreshKeysJob(nullptr), mProcess(nullptr), mError(0) @@ -60,12 +62,12 @@ QGpgME::QGpgMERefreshSMIMEKeysJob::QGpgMERefreshSMIMEKeysJob() } -QGpgME::QGpgMERefreshSMIMEKeysJob::~QGpgMERefreshSMIMEKeysJob() +QGpgMERefreshSMIMEKeysJob::~QGpgMERefreshSMIMEKeysJob() { } -GpgME::Error QGpgME::QGpgMERefreshSMIMEKeysJob::start(const QStringList &patterns) +GpgME::Error QGpgMERefreshSMIMEKeysJob::start(const QStringList &patterns) { assert(mPatternsToDo.empty()); @@ -83,7 +85,7 @@ GpgME::Error QGpgME::QGpgMERefreshSMIMEKeysJob::start(const QStringList &pattern #error MAX_CMD_LENGTH is too low #endif -GpgME::Error QGpgME::QGpgMERefreshSMIMEKeysJob::startAProcess() +GpgME::Error QGpgMERefreshSMIMEKeysJob::startAProcess() { if (mPatternsToDo.empty()) { return GpgME::Error(); @@ -137,7 +139,7 @@ GpgME::Error QGpgME::QGpgMERefreshSMIMEKeysJob::startAProcess() } } -void QGpgME::QGpgMERefreshSMIMEKeysJob::slotCancel() +void QGpgMERefreshSMIMEKeysJob::slotCancel() { if (mProcess) { mProcess->kill(); @@ -146,7 +148,7 @@ void QGpgME::QGpgMERefreshSMIMEKeysJob::slotCancel() mError = GpgME::Error::fromCode(GPG_ERR_CANCELED, GPG_ERR_SOURCE_GPGSM); } -void QGpgME::QGpgMERefreshSMIMEKeysJob::slotStatus(QProcess *proc, const QString &type, const QStringList &args) +void QGpgMERefreshSMIMEKeysJob::slotStatus(QProcess *proc, const QString &type, const QStringList &args) { if (proc != mProcess) { return; @@ -204,12 +206,12 @@ void QGpgME::QGpgMERefreshSMIMEKeysJob::slotStatus(QProcess *proc, const QString } } -void QGpgME::QGpgMERefreshSMIMEKeysJob::slotStderr() +void QGpgMERefreshSMIMEKeysJob::slotStderr() { // implement? or not? } -void QGpgME::QGpgMERefreshSMIMEKeysJob::slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus) +void QGpgMERefreshSMIMEKeysJob::slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus) { if (!mError && !mPatternsToDo.empty()) { if (const GpgME::Error err = startAProcess()) {