diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 15:32:06 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 18:20:46 +0100 |
commit | 1c0172cca4f1e90679321912e20436a7f42f122d (patch) | |
tree | 77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /plugins/CSList | |
parent | dff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff) |
more nullptr
Diffstat (limited to 'plugins/CSList')
-rw-r--r-- | plugins/CSList/src/stdafx.h | 14 |
1 files changed, 7 insertions, 7 deletions
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)
|