summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src/list.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/WhoUsesMyFiles/src/list.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/WhoUsesMyFiles/src/list.cpp')
-rw-r--r--plugins/WhoUsesMyFiles/src/list.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/WhoUsesMyFiles/src/list.cpp b/plugins/WhoUsesMyFiles/src/list.cpp
index 028d17f035..a597d99235 100644
--- a/plugins/WhoUsesMyFiles/src/list.cpp
+++ b/plugins/WhoUsesMyFiles/src/list.cpp
@@ -11,7 +11,7 @@ PWumf new_wumf( DWORD dwID,
{
PWumf w = (PWumf)mir_calloc(sizeof(Wumf));
if (!w)
- return NULL;
+ return nullptr;
w->szUser = mir_wstrdup(szUser);
w->szPath = mir_wstrdup(szPath);
@@ -31,7 +31,7 @@ PWumf new_wumf( DWORD dwID,
w->dwAttr = dwAttr;
w->dwPerm = dwPerm;
w->mark = FALSE;
- w->next = NULL;
+ w->next = nullptr;
return w;
}
@@ -56,7 +56,7 @@ BOOL add_cell(PWumf* l, PWumf w)
while(p->next) p = p->next;
p->next = w;
}
- w->next = NULL;
+ w->next = nullptr;
return TRUE;
}
@@ -85,12 +85,12 @@ BOOL cpy_cell(PWumf *l, PWumf w)
PWumf cpy_list(PWumf *l)
{
- PWumf w, p = NULL;
+ PWumf w, p = nullptr;
- if (!l || !*l) return NULL;
+ if (!l || !*l) return nullptr;
w = *l;
while(w) {
- if (!cpy_cell(&p, w))return NULL;
+ if (!cpy_cell(&p, w))return nullptr;
w = w->next;
}
return p;
@@ -98,7 +98,7 @@ PWumf cpy_list(PWumf *l)
PWumf fnd_cell(PWumf *l, DWORD dwID)
{
- if (!l || !*l)return NULL;
+ if (!l || !*l)return nullptr;
PWumf w = *l;
while(w && w->dwID != dwID) w = w->next;
return w;
@@ -115,7 +115,7 @@ BOOL del_all(PWumf *l)
w = p;
}
- *l = NULL;
+ *l = nullptr;
return TRUE;
}