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/HTTPServer/src/FileShareNode.h | 2 +- plugins/HTTPServer/src/HttpUser.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/HTTPServer/src') diff --git a/plugins/HTTPServer/src/FileShareNode.h b/plugins/HTTPServer/src/FileShareNode.h index 7c40bcced1..032bc34510 100644 --- a/plugins/HTTPServer/src/FileShareNode.h +++ b/plugins/HTTPServer/src/FileShareNode.h @@ -61,7 +61,7 @@ public://, DWORD dwAllowedIP, DWORD dwAllowedMask, int nMaxDownloads ); bool bAddUser(CLShareUser * pclUser); bool bRemoveUser(CLShareUser * pclUser); bool bAnyUsers() { - return pclCurrentUsers != 0; + return pclCurrentUsers != nullptr; } void CloseAllTransfers(); CLShareUser *pclGetUsers() { diff --git a/plugins/HTTPServer/src/HttpUser.h b/plugins/HTTPServer/src/HttpUser.h index a5a7b2d24c..f44c9a8e71 100644 --- a/plugins/HTTPServer/src/HttpUser.h +++ b/plugins/HTTPServer/src/HttpUser.h @@ -63,8 +63,8 @@ private: HANDLE hFile; char *apszParam[eLastParam]; - void SendError(int iErrorCode, const char * pszError, const char * pszDescription = NULL); - void SendRedir(int iErrorCode, const char * pszError, const char * pszDescription = NULL, const char * pszRedirect = NULL); + void SendError(int iErrorCode, const char * pszError, const char * pszDescription = nullptr); + void SendRedir(int iErrorCode, const char * pszError, const char * pszDescription = nullptr, const char * pszRedirect = nullptr); }; #endif \ No newline at end of file -- cgit v1.2.3