From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- plugins/CSList/src/stdafx.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/CSList') diff --git a/plugins/CSList/src/stdafx.h b/plugins/CSList/src/stdafx.h index c6277a2111..f0ae5f985d 100644 --- a/plugins/CSList/src/stdafx.h +++ b/plugins/CSList/src/stdafx.h @@ -161,8 +161,8 @@ template< class T > struct ListItem ListItem() { - m_item = NULL; - m_next = NULL; + m_item = nullptr; + m_next = nullptr; } ~ListItem() @@ -173,13 +173,13 @@ template< class T > struct ListItem ListItem(StatusItem* si) { m_item = si; - m_next = NULL; + m_next = nullptr; } ListItem(const ListItem& p) { m_item = p.item; - m_next = NULL; + m_next = nullptr; } }; @@ -196,7 +196,7 @@ public: List(compareFunc compFnc) { - m_items = NULL; + m_items = nullptr; m_count = 0; m_compare = compFnc; } @@ -220,13 +220,13 @@ public: { int position = 0; ListItem< T >* item = new ListItem< T >(csi); - if (m_items == NULL) + if (m_items == nullptr) m_items = item; else { ListItem< T >* help = item; item->m_next = m_items; - while (help->m_next != NULL) + while (help->m_next != nullptr) { int cmp = m_compare(item->m_item, help->m_next->m_item); if (cmp == 1) -- cgit v1.2.3