]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/basic/User.cc
Maintenance: Removed most NULLs using modernize-use-nullptr (#1075)
[thirdparty/squid.git] / src / auth / basic / User.cc
index f5b58d94504d39dabe1751a84d1065deb594bf7a..cc33a2df777488b6ddf1d5c130ff463b305cb625 100644 (file)
@@ -15,9 +15,9 @@
 
 Auth::Basic::User::User(Auth::SchemeConfig *aConfig, const char *aRequestRealm) :
     Auth::User(aConfig, aRequestRealm),
-    passwd(NULL),
-    queue(NULL),
-    currentRequest(NULL)
+    passwd(nullptr),
+    queue(nullptr),
+    currentRequest(nullptr)
 {}
 
 Auth::Basic::User::~User()
@@ -51,9 +51,9 @@ Auth::Basic::User::authenticated() const
 bool
 Auth::Basic::User::valid() const
 {
-    if (username() == NULL)
+    if (username() == nullptr)
         return false;
-    if (passwd == NULL)
+    if (passwd == nullptr)
         return false;
     return true;
 }
@@ -70,7 +70,7 @@ Auth::Basic::User::updateCached(Auth::Basic::User *from)
         credentials(Auth::Unchecked);
         xfree(passwd);
         passwd = from->passwd;
-        from->passwd = NULL;
+        from->passwd = nullptr;
     }
 
     if (credentials() == Auth::Failed) {