]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/log/FormatHttpdCombined.cc
Maintenance: Removed most NULLs using modernize-use-nullptr (#1075)
[thirdparty/squid.git] / src / log / FormatHttpdCombined.cc
index 92bd9b65578ad0c12d962a1002a39a90fe9c0e6a..78e750391bcb6bdc2f7c04b61e2049109698694d 100644 (file)
@@ -22,13 +22,13 @@ void
 Log::Format::HttpdCombined(const AccessLogEntry::Pointer &al, Logfile * logfile)
 {
     const char *user_ident = ::Format::QuoteUrlEncodeUsername(al->getClientIdent());
-    const char *user_auth = NULL;
-    const char *referer = NULL;
-    const char *agent = NULL;
+    const char *user_auth = nullptr;
+    const char *referer = nullptr;
+    const char *agent = nullptr;
 
     if (al->request) {
 #if USE_AUTH
-        if (al->request->auth_user_request != NULL)
+        if (al->request->auth_user_request != nullptr)
             user_auth = ::Format::QuoteUrlEncodeUsername(al->request->auth_user_request->username());
 #endif
         referer = al->request->header.getStr(Http::HdrType::REFERER);