From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/HTTPServer/src/FileShareNode.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/HTTPServer/src/FileShareNode.cpp') diff --git a/plugins/HTTPServer/src/FileShareNode.cpp b/plugins/HTTPServer/src/FileShareNode.cpp index a23f0c6fe4..939c46f364 100644 --- a/plugins/HTTPServer/src/FileShareNode.cpp +++ b/plugins/HTTPServer/src/FileShareNode.cpp @@ -18,7 +18,7 @@ #include "Glob.h" -CLFileShareNode * pclFirstNode = NULL; +CLFileShareNode * pclFirstNode = nullptr; mir_cs csFileShareListAccess; @@ -40,7 +40,7 @@ CLShareUser::CLShareUser(HNETLIBCONN hCon, in_addr stAdd) { hConnection = hCon; stAddr = stAdd; - pclNext = NULL; + pclNext = nullptr; dwTotalSize = 0; dwCurrentDL = 0; dwSpeed = 0; @@ -132,8 +132,8 @@ CLFileShareNode::CLFileShareNode(char * pszSrvPath, char * pszRealPath) { memset(&st, 0, sizeof(STFileShareInfo)); st.lStructSize = sizeof(STFileShareInfo); - pclNext = NULL; - pclCurrentUsers = NULL; + pclNext = nullptr; + pclCurrentUsers = nullptr; bSetPaths(pszSrvPath, pszRealPath); } @@ -155,8 +155,8 @@ CLFileShareNode::CLFileShareNode(STFileShareInfo * pstInfo) { memset(&st, 0, sizeof(STFileShareInfo)); st.lStructSize = sizeof(STFileShareInfo); - pclNext = NULL; - pclCurrentUsers = NULL; + pclNext = nullptr; + pclCurrentUsers = nullptr; bSetInfo(pstInfo); } -- cgit v1.2.3