aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/logview/LogViewWindow.cpp
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/logview/LogViewWindow.cpp
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/logview/LogViewWindow.cpp')
-rw-r--r--src/modules/logview/LogViewWindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/logview/LogViewWindow.cpp b/src/modules/logview/LogViewWindow.cpp
index 0c5f0b9d6..287c2c513 100644
--- a/src/modules/logview/LogViewWindow.cpp
+++ b/src/modules/logview/LogViewWindow.cpp
@@ -211,7 +211,7 @@ LogViewWindow::LogViewWindow()
LogViewWindow::~LogViewWindow()
{
- g_pLogViewWindow = 0;
+ g_pLogViewWindow = nullptr;
}
void LogViewWindow::keyPressEvent(QKeyEvent * pEvent)
@@ -286,8 +286,8 @@ void LogViewWindow::setupItemList()
m_pProgressBar->setRange(0, m_logList.count());
m_pProgressBar->setValue(0);
- m_pLastCategory = 0;
- m_pLastGroupItem = 0;
+ m_pLastCategory = nullptr;
+ m_pLastGroupItem = nullptr;
m_logList.first();
m_pTimer->start(); //singleshot
}
@@ -344,7 +344,7 @@ void LogViewWindow::filterNext()
{
if(m_pLastCategory->m_eType != pFile->type())
{
- m_pLastCategory = 0;
+ m_pLastCategory = nullptr;
for(int i = 0; i < m_pListView->topLevelItemCount(); ++i)
{
LogListViewItemType * pTmp = (LogListViewItemType *)m_pListView->topLevelItem(i);
@@ -368,7 +368,7 @@ void LogViewWindow::filterNext()
if(m_szLastGroup != szCurGroup)
{
m_szLastGroup = szCurGroup;
- m_pLastGroupItem = 0;
+ m_pLastGroupItem = nullptr;
for(int i = 0; i < m_pLastCategory->childCount(); ++i)
{
LogListViewItemFolder * pTmp = (LogListViewItemFolder *)m_pLastCategory->child(i);
@@ -474,7 +474,7 @@ void LogViewWindow::deleteCurrent()
this,
__tr2qs_ctx("Confirm Current User Log Deletion", "log"),
__tr2qs_ctx("Do you really wish to delete this log?", "log"),
- __tr2qs("Yes"), __tr2qs("No"), 0, 1)
+ __tr2qs("Yes"), __tr2qs("No"), nullptr, 1)
!= 0)
return;
@@ -492,7 +492,7 @@ void LogViewWindow::deleteCurrent()
this,
__tr2qs_ctx("Confirm Current User Logs Deletion", "log"),
__tr2qs_ctx("Do you really wish to delete all these logs?", "log"),
- __tr2qs("Yes"), __tr2qs("No"), 0, 1)
+ __tr2qs("Yes"), __tr2qs("No"), nullptr, 1)
!= 0)
return;
KviPointerList<LogListViewItem> itemsList;