diff options
| author | 2016-04-30 18:23:42 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | 505d0768f8392e3c4775425dd97f41e1c829ef44 (patch) | |
| tree | 55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/spaste/SlowPasteController.cpp | |
| parent | Update my clang-format to 3.8.0 (diff) | |
| download | KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2 KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip | |
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/spaste/SlowPasteController.cpp')
| -rw-r--r-- | src/modules/spaste/SlowPasteController.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/spaste/SlowPasteController.cpp b/src/modules/spaste/SlowPasteController.cpp index 99ec083a0..4f432b0a6 100644 --- a/src/modules/spaste/SlowPasteController.cpp +++ b/src/modules/spaste/SlowPasteController.cpp @@ -39,7 +39,7 @@ extern KviPointerList<SlowPasteController> * g_pControllerList; SlowPasteController::SlowPasteController(KviWindow * w, int id) - : m_pClipBuff(NULL), m_pFile(NULL), m_pId(id), m_pWindow(w) + : m_pClipBuff(nullptr), m_pFile(nullptr), m_pId(id), m_pWindow(w) { g_pControllerList->append(this); //m_pWindow = w; @@ -73,7 +73,7 @@ bool SlowPasteController::pasteFileInit(QString & fileName) if(!m_pFile->open(QIODevice::ReadOnly)) return false; //avoid double connection - disconnect(m_pTimer, SIGNAL(timeout()), 0, 0); + disconnect(m_pTimer, SIGNAL(timeout()), nullptr, nullptr); connect(m_pTimer, SIGNAL(timeout()), this, SLOT(pasteFile())); //avoid timer reset if always active if(!m_pTimer->isActive()) @@ -95,7 +95,7 @@ bool SlowPasteController::pasteClipboardInit(void) m_pClipBuff = new QStringList(tmp.isEmpty() ? QStringList() : tmp.split("\n", QString::KeepEmptyParts)); } //avoid double connection - disconnect(m_pTimer, SIGNAL(timeout()), 0, 0); + disconnect(m_pTimer, SIGNAL(timeout()), nullptr, nullptr); connect(m_pTimer, SIGNAL(timeout()), this, SLOT(pasteClipboard())); //avoid timer reset if always active if(!m_pTimer->isActive()) |
