aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/list
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:23:42 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:44 +0100
commit505d0768f8392e3c4775425dd97f41e1c829ef44 (patch)
tree55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/list
parentUpdate my clang-format to 3.8.0 (diff)
downloadKVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/list')
-rw-r--r--src/modules/list/ListWindow.cpp10
-rw-r--r--src/modules/list/libkvilist.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/list/ListWindow.cpp b/src/modules/list/ListWindow.cpp
index c323d12cd..c476cd0db 100644
--- a/src/modules/list/ListWindow.cpp
+++ b/src/modules/list/ListWindow.cpp
@@ -176,7 +176,7 @@ ListWindow::ListWindow(KviConsoleWindow * lpConsole)
{
g_pListWindowList->append(this);
- m_pFlushTimer = 0;
+ m_pFlushTimer = nullptr;
m_pItemList = new KviPointerList<ChannelTreeWidgetItemData>;
m_pItemList->setAutoDelete(false);
@@ -270,7 +270,7 @@ ListWindow::ListWindow(KviConsoleWindow * lpConsole)
ListWindow::~ListWindow()
{
g_pListWindowList->removeRef(this);
- m_pConsole->context()->setListWindowPointer(0);
+ m_pConsole->context()->setListWindowPointer(nullptr);
if(m_pFlushTimer)
delete m_pFlushTimer;
@@ -366,7 +366,7 @@ void ListWindow::exportList()
{
if(!m_pTreeWidget->topLevelItemCount())
{
- QMessageBox::warning(0, __tr2qs("Warning While Exporting - KVIrc"), __tr2qs("You can't export an empty list!"));
+ QMessageBox::warning(nullptr, __tr2qs("Warning While Exporting - KVIrc"), __tr2qs("You can't export an empty list!"));
return;
}
@@ -472,7 +472,7 @@ void ListWindow::endOfList()
if(m_pFlushTimer)
{
delete m_pFlushTimer;
- m_pFlushTimer = 0;
+ m_pFlushTimer = nullptr;
}
m_pRequestButton->setEnabled(true);
outputNoFmt(KVI_OUT_SYSTEMMESSAGE, __tr2qs("Channels list download finished"));
@@ -494,7 +494,7 @@ void ListWindow::liveSearch(const QString & szText)
{
QRegExp res(szText, Qt::CaseInsensitive, QRegExp::Wildcard);
- ChannelTreeWidgetItem * pItem = 0;
+ ChannelTreeWidgetItem * pItem = nullptr;
for(int i = 0; i < m_pTreeWidget->topLevelItemCount(); i++)
{
pItem = (ChannelTreeWidgetItem *)m_pTreeWidget->topLevelItem(i);
diff --git a/src/modules/list/libkvilist.cpp b/src/modules/list/libkvilist.cpp
index a20948673..63dd0a923 100644
--- a/src/modules/list/libkvilist.cpp
+++ b/src/modules/list/libkvilist.cpp
@@ -31,7 +31,7 @@
#include <QSplitter>
-KviPointerList<ListWindow> * g_pListWindowList = 0;
+KviPointerList<ListWindow> * g_pListWindowList = nullptr;
/*
@doc: list.open
@@ -82,7 +82,7 @@ static bool list_module_cleanup(KviModule *)
while(g_pListWindowList->first())
g_pListWindowList->first()->die();
delete g_pListWindowList;
- g_pListWindowList = 0;
+ g_pListWindowList = nullptr;
return true;
}