From f7d69de030b36c1f8cb3491dc97750fb7725f258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 13 Dec 2023 10:16:41 +0100 Subject: [PATCH] qt: Replace Q_NULLPTR with nullptr * lang/qt/src/defaultkeygenerationjob.h, lang/qt/src/qgpgmebackend.h, lang/qt/src/quickjob.h, lang/qt/src/threadedjobmixin.h: Replace all occurrences of Q_NULLPTR with nullptr. -- --- lang/qt/src/defaultkeygenerationjob.h | 2 +- lang/qt/src/qgpgmebackend.h | 4 ++-- lang/qt/src/quickjob.h | 2 +- lang/qt/src/threadedjobmixin.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lang/qt/src/defaultkeygenerationjob.h b/lang/qt/src/defaultkeygenerationjob.h index 8bbbe34a..c59e0c6d 100644 --- a/lang/qt/src/defaultkeygenerationjob.h +++ b/lang/qt/src/defaultkeygenerationjob.h @@ -51,7 +51,7 @@ class QGPGME_DEPRECATED_EXPORT DefaultKeyGenerationJob : public Job { Q_OBJECT public: - explicit DefaultKeyGenerationJob(QObject *parent = Q_NULLPTR); + explicit DefaultKeyGenerationJob(QObject *parent = nullptr); ~DefaultKeyGenerationJob(); GpgME::Error start(const QString &email, const QString &name); diff --git a/lang/qt/src/qgpgmebackend.h b/lang/qt/src/qgpgmebackend.h index 6c655e96..2e26d4a3 100644 --- a/lang/qt/src/qgpgmebackend.h +++ b/lang/qt/src/qgpgmebackend.h @@ -68,8 +68,8 @@ public: static const char OpenPGP[]; static const char SMIME[]; - bool checkForOpenPGP(QString *reason = Q_NULLPTR) const; - bool checkForSMIME(QString *reason = Q_NULLPTR) const; + bool checkForOpenPGP(QString *reason = nullptr) const; + bool checkForSMIME(QString *reason = nullptr) const; bool checkForProtocol(const char *name, QString *reason) const; bool supportsOpenPGP() const diff --git a/lang/qt/src/quickjob.h b/lang/qt/src/quickjob.h index 5d3473fd..612a53d0 100644 --- a/lang/qt/src/quickjob.h +++ b/lang/qt/src/quickjob.h @@ -56,7 +56,7 @@ class QGPGME_EXPORT QuickJob : public Job { Q_OBJECT public: - explicit QuickJob(QObject *parent = Q_NULLPTR); + explicit QuickJob(QObject *parent = nullptr); ~QuickJob(); /** Start --quick-gen-key */ diff --git a/lang/qt/src/threadedjobmixin.h b/lang/qt/src/threadedjobmixin.h index 92a02c24..ad07e121 100644 --- a/lang/qt/src/threadedjobmixin.h +++ b/lang/qt/src/threadedjobmixin.h @@ -95,7 +95,7 @@ template class Thread : public QThread { public: - explicit Thread(QObject *parent = Q_NULLPTR) : QThread(parent) {} + explicit Thread(QObject *parent = nullptr) : QThread(parent) {} void setFunction(const std::function &function) {