From: rousskov <> Date: Sun, 17 Feb 2008 00:42:27 +0000 (+0000) Subject: Polished clientReplyContext::purgeAllCached. X-Git-Tag: BASIC_TPROXY4~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35ececa559543854a4ee40f044156ef8414a7869;p=thirdparty%2Fsquid.git Polished clientReplyContext::purgeAllCached. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index d7d495ebf6..38408bbbe5 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.153 2008/02/12 23:07:52 rousskov Exp $ + * $Id: client_side_reply.cc,v 1.154 2008/02/16 17:42:27 rousskov Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -764,18 +764,16 @@ void clientReplyContext::purgeAllCached() { const char *url = urlCanonical(http->request); - - HttpRequestMethod m(METHOD_NONE); - for (; m!=METHOD_ENUM_END; ++m) { + + for (HttpRequestMethod m(METHOD_NONE); m != METHOD_ENUM_END; ++m) { if (m.isCacheble()) { if (StoreEntry *entry = storeGetPublic(url, m)) { debugs(88, 5, "purging " << RequestMethodStr(m) << ' ' << url); entry->release(); } - } // end if(isCacheble()) - } // end for - -} // purgeAllCached + } + } +} void clientReplyContext::created(StoreEntry *newEntry)