/*
- * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
std::vector<HttpHeaderFieldStat> ccHeaderStats(HttpHdrCcType::CC_ENUM_END);
/// used to walk a table of http_header_cc_type structs
-HttpHdrCcType &operator++ (HttpHdrCcType &aHeader)
+static HttpHdrCcType &
+operator++ (HttpHdrCcType &aHeader)
{
int tmp = (int)aHeader;
aHeader = (HttpHdrCcType)(++tmp);
{
// check invariant on initialization table
for (unsigned int j = 0; CcAttrs[j].name != nullptr; ++j) {
- assert (static_cast<int>(CcAttrs[j].id) == j);
+ assert(static_cast<decltype(j)>(CcAttrs[j].id) == j);
}
}
{
const char *item;
const char *p; /* '=' parameter */
- const char *pos = NULL;
+ const char *pos = nullptr;
int ilen;
int nlen;