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.
--
This commit is contained in:
Ingo Klöcker 2023-12-13 10:16:41 +01:00
parent 6baccdc0c3
commit f7d69de030
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9
4 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ class QGPGME_DEPRECATED_EXPORT DefaultKeyGenerationJob : public Job
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit DefaultKeyGenerationJob(QObject *parent = Q_NULLPTR); explicit DefaultKeyGenerationJob(QObject *parent = nullptr);
~DefaultKeyGenerationJob(); ~DefaultKeyGenerationJob();
GpgME::Error start(const QString &email, const QString &name); GpgME::Error start(const QString &email, const QString &name);

View File

@ -68,8 +68,8 @@ public:
static const char OpenPGP[]; static const char OpenPGP[];
static const char SMIME[]; static const char SMIME[];
bool checkForOpenPGP(QString *reason = Q_NULLPTR) const; bool checkForOpenPGP(QString *reason = nullptr) const;
bool checkForSMIME(QString *reason = Q_NULLPTR) const; bool checkForSMIME(QString *reason = nullptr) const;
bool checkForProtocol(const char *name, QString *reason) const; bool checkForProtocol(const char *name, QString *reason) const;
bool supportsOpenPGP() const bool supportsOpenPGP() const

View File

@ -56,7 +56,7 @@ class QGPGME_EXPORT QuickJob : public Job
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit QuickJob(QObject *parent = Q_NULLPTR); explicit QuickJob(QObject *parent = nullptr);
~QuickJob(); ~QuickJob();
/** Start --quick-gen-key */ /** Start --quick-gen-key */

View File

@ -95,7 +95,7 @@ template <typename T_result>
class Thread : public QThread class Thread : public QThread
{ {
public: public:
explicit Thread(QObject *parent = Q_NULLPTR) : QThread(parent) {} explicit Thread(QObject *parent = nullptr) : QThread(parent) {}
void setFunction(const std::function<T_result()> &function) void setFunction(const std::function<T_result()> &function)
{ {