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/links/LinksWindow.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/links/LinksWindow.cpp')
| -rw-r--r-- | src/modules/links/LinksWindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/links/LinksWindow.cpp b/src/modules/links/LinksWindow.cpp index c29bd1ede..089ef86ef 100644 --- a/src/modules/links/LinksWindow.cpp +++ b/src/modules/links/LinksWindow.cpp @@ -101,7 +101,7 @@ LinksWindow::LinksWindow(KviConsoleWindow * lpConsole) LinksWindow::~LinksWindow() { g_pLinksWindowList->removeRef(this); - m_pConsole->context()->setLinksWindowPointer(0); + m_pConsole->context()->setLinksWindowPointer(nullptr); delete m_pLinkList; delete m_pHostPopup; } @@ -193,8 +193,8 @@ void LinksWindow::endOfLinks() outputNoFmt(KVI_OUT_SYSTEMMESSAGE, __tr2qs("Received end of links.")); outputNoFmt(KVI_OUT_SYSTEMMESSAGE, "======================"); - QTreeWidgetItem * it = 0; - QTreeWidgetItem * root = 0; + QTreeWidgetItem * it = nullptr; + QTreeWidgetItem * root = nullptr; int totalHosts = 0; int totalHops = 0; @@ -342,11 +342,11 @@ void LinksWindow::endOfLinks() QTreeWidgetItem * LinksWindow::insertLink(KviLink * l) { KVI_ASSERT(l->hops > 0); - QTreeWidgetItem * i = getItemByHost(l->parent.ptr(), 0); - QTreeWidgetItem * it = 0; + QTreeWidgetItem * i = getItemByHost(l->parent.ptr(), nullptr); + QTreeWidgetItem * it = nullptr; if(!i) { - return 0; + return nullptr; } else { @@ -387,7 +387,7 @@ QTreeWidgetItem * LinksWindow::getItemByHost(const char * host, QTreeWidgetItem return ch; } } - return 0; + return nullptr; } void LinksWindow::showHostPopup(QTreeWidgetItem * i, const QPoint & p) |
