diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2020-02-05 14:34:41 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2020-02-10 18:41:07 +0300 |
commit | fc69d5271e674bde6b71ba46b1d86588b9b30705 (patch) | |
tree | 9b239a78d1404755ff151cdceb4943b57870c6b8 /src/3rdparty | |
parent | 146d75a2d601509157a0fcd981ef0209926e7d6c (diff) |
Run clang-tidy check for modernize-use-nullptr
Diffstat (limited to 'src/3rdparty')
4 files changed, 6 insertions, 6 deletions
diff --git a/src/3rdparty/QProgressIndicator/QProgressIndicator.h b/src/3rdparty/QProgressIndicator/QProgressIndicator.h index 449d89bd3..9b128d066 100644 --- a/src/3rdparty/QProgressIndicator/QProgressIndicator.h +++ b/src/3rdparty/QProgressIndicator/QProgressIndicator.h @@ -42,7 +42,7 @@ class QProgressIndicator : public QWidget Q_PROPERTY(bool displayedWhenStopped READ isDisplayedWhenStopped WRITE setDisplayedWhenStopped) Q_PROPERTY(QColor color READ color WRITE setColor) public: - QProgressIndicator(QWidget* parent = 0); + QProgressIndicator(QWidget* parent = nullptr); /*! Returns the delay between animation steps. \return The number of milliseconds between animation steps. By default, the animation delay is set to 40 milliseconds. diff --git a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp index 3ebba6e6f..f7229df5a 100644 --- a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp +++ b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp @@ -123,7 +123,7 @@ bool QtLocalPeer::sendMessage(const QString &message, int timeout, bool block) Sleep(DWORD(ms)); #else struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; - nanosleep(&ts, NULL); + nanosleep(&ts, nullptr); #endif } if (!connOk) diff --git a/src/3rdparty/qtsingleapplication/qtlocalpeer.h b/src/3rdparty/qtsingleapplication/qtlocalpeer.h index 361936319..ce93a5e0a 100644 --- a/src/3rdparty/qtsingleapplication/qtlocalpeer.h +++ b/src/3rdparty/qtsingleapplication/qtlocalpeer.h @@ -40,7 +40,7 @@ class QtLocalPeer : public QObject Q_OBJECT public: - explicit QtLocalPeer(QObject *parent = 0, const QString &appId = QString()); + explicit QtLocalPeer(QObject *parent = nullptr, const QString &appId = QString()); bool isClient(); bool sendMessage(const QString &message, int timeout, bool block); QString applicationId() const diff --git a/src/3rdparty/qtsingleapplication/qtsingleapplication.cpp b/src/3rdparty/qtsingleapplication/qtsingleapplication.cpp index 844824cb4..5934d1cb3 100644 --- a/src/3rdparty/qtsingleapplication/qtsingleapplication.cpp +++ b/src/3rdparty/qtsingleapplication/qtsingleapplication.cpp @@ -53,7 +53,7 @@ static QString instancesLockFilename(const QString &appSessionId) QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char **argv) : QApplication(argc, argv), firstPeer(-1), - pidPeer(0) + pidPeer(nullptr) { this->appId = appId; @@ -61,7 +61,7 @@ QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char * // This shared memory holds a zero-terminated array of active (or crashed) instances instances = new QSharedMemory(appSessionId, this); - actWin = 0; + actWin = nullptr; block = false; // First instance creates the shared memory, later instances attach to it @@ -71,7 +71,7 @@ QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char * qWarning() << "Failed to initialize instances shared memory: " << instances->errorString(); delete instances; - instances = 0; + instances = nullptr; return; } } |