From 601e5edf979613b5b69057875fd9a92e5a7c3910 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 10 Jun 2015 17:09:32 -0700 Subject: [PATCH] Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal. --HG-- extra : rebase_source : e158de557cdf93c132627268c8dd2342d4c3de5f --- netwerk/dns/nsHostResolver.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/netwerk/dns/nsHostResolver.cpp b/netwerk/dns/nsHostResolver.cpp index ca14e3bbcd93..09445698f6e3 100644 --- a/netwerk/dns/nsHostResolver.cpp +++ b/netwerk/dns/nsHostResolver.cpp @@ -632,24 +632,24 @@ nsHostResolver::ClearPendingQueue(PRCList *aPendingQ) void nsHostResolver::FlushCache() { - MutexAutoLock lock(mLock); - mEvictionQSize = 0; + MutexAutoLock lock(mLock); + mEvictionQSize = 0; - // Clear the evictionQ and remove all its corresponding entries from - // the cache first - if (!PR_CLIST_IS_EMPTY(&mEvictionQ)) { - PRCList *node = mEvictionQ.next; - while (node != &mEvictionQ) { - nsHostRecord *rec = static_cast(node); - node = node->next; - PR_REMOVE_AND_INIT_LINK(rec); - PL_DHashTableRemove(&mDB, (nsHostKey *) rec); - NS_RELEASE(rec); - } - } + // Clear the evictionQ and remove all its corresponding entries from + // the cache first + if (!PR_CLIST_IS_EMPTY(&mEvictionQ)) { + PRCList *node = mEvictionQ.next; + while (node != &mEvictionQ) { + nsHostRecord *rec = static_cast(node); + node = node->next; + PR_REMOVE_AND_INIT_LINK(rec); + PL_DHashTableRemove(&mDB, (nsHostKey *) rec); + NS_RELEASE(rec); + } + } - // Refresh the cache entries that are resolving RIGHT now, remove the rest. - PL_DHashTableEnumerate(&mDB, HostDB_PruneEntry, nullptr); + // Refresh the cache entries that are resolving RIGHT now, remove the rest. + PL_DHashTableEnumerate(&mDB, HostDB_PruneEntry, nullptr); } void