From 10c40d990d1fb026fa0683ca07c24ae1aae7cf2c Mon Sep 17 00:00:00 2001 From: Automatic source maintenance Date: Wed, 2 Mar 2011 18:18:42 -0700 Subject: [PATCH] SourceFormat Enforcement --- src/anyp/ProtocolType.h | 3 ++- src/mgr/Inquirer.cc | 9 +++------ src/mgr/IntParam.cc | 4 ++-- src/mgr/QueryParams.cc | 2 +- src/mgr/StringParam.cc | 4 ++-- tools/cachemgr.cc | 4 ++-- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/anyp/ProtocolType.h b/src/anyp/ProtocolType.h index 769541f6dd..8a43b39fad 100644 --- a/src/anyp/ProtocolType.h +++ b/src/anyp/ProtocolType.h @@ -5,7 +5,8 @@ #include #endif -namespace AnyP { +namespace AnyP +{ /** * List of all protocols known and supported. diff --git a/src/mgr/Inquirer.cc b/src/mgr/Inquirer.cc index 3a604d4351..93a7317090 100644 --- a/src/mgr/Inquirer.cc +++ b/src/mgr/Inquirer.cc @@ -77,8 +77,7 @@ Mgr::Inquirer::start() std::auto_ptr reply(err->BuildHttpReply()); replyBuf.reset(reply->pack()); errorStateFree(err); - } - else { + } else { std::auto_ptr reply(new HttpReply); reply->setHeaders(HTTP_OK, NULL, "text/plain", -1, squid_curtime, squid_curtime); reply->header.putStr(HDR_CONNECTION, "close"); // until we chunk response @@ -151,8 +150,7 @@ Mgr::Inquirer::applyQueryParams(const Ipc::StrandCoords& aStrands, const QueryPa if (param != NULL && param->type == QueryParam::ptInt) { const std::vector& processes = param->value(); for (Ipc::StrandCoords::const_iterator iter = aStrands.begin(); - iter != aStrands.end(); ++iter) - { + iter != aStrands.end(); ++iter) { if (std::find(processes.begin(), processes.end(), iter->kidId) != processes.end()) strands.push_back(*iter); } @@ -161,8 +159,7 @@ Mgr::Inquirer::applyQueryParams(const Ipc::StrandCoords& aStrands, const QueryPa IntParam* param = dynamic_cast(workersParam.getRaw()); if (param != NULL && param->type == QueryParam::ptInt) { const std::vector& workers = param->value(); - for (int i = 0; i < (int)aStrands.size(); ++i) - { + for (int i = 0; i < (int)aStrands.size(); ++i) { if (std::find(workers.begin(), workers.end(), i + 1) != workers.end()) strands.push_back(aStrands[i]); } diff --git a/src/mgr/IntParam.cc b/src/mgr/IntParam.cc index d67382d926..70418aa791 100644 --- a/src/mgr/IntParam.cc +++ b/src/mgr/IntParam.cc @@ -12,12 +12,12 @@ Mgr::IntParam::IntParam(): - QueryParam(QueryParam::ptInt), array() + QueryParam(QueryParam::ptInt), array() { } Mgr::IntParam::IntParam(const std::vector& anArray): - QueryParam(QueryParam::ptInt), array(anArray) + QueryParam(QueryParam::ptInt), array(anArray) { } diff --git a/src/mgr/QueryParams.cc b/src/mgr/QueryParams.cc index 45cbb033ce..fc1e165f2b 100644 --- a/src/mgr/QueryParams.cc +++ b/src/mgr/QueryParams.cc @@ -123,7 +123,7 @@ Mgr::QueryParams::Parse(const String& aParamsStr, QueryParams& aParams) Mgr::QueryParam::Pointer Mgr::QueryParams::CreateParam(QueryParam::Type aType) { - switch(aType) { + switch (aType) { case QueryParam::ptInt: return new IntParam(); diff --git a/src/mgr/StringParam.cc b/src/mgr/StringParam.cc index 2f82d9d2b8..358b0ea022 100644 --- a/src/mgr/StringParam.cc +++ b/src/mgr/StringParam.cc @@ -11,12 +11,12 @@ Mgr::StringParam::StringParam(): - QueryParam(QueryParam::ptString), str() + QueryParam(QueryParam::ptString), str() { } Mgr::StringParam::StringParam(const String& aString): - QueryParam(QueryParam::ptString), str(aString) + QueryParam(QueryParam::ptString), str(aString) { } diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 2c5cf70e43..4f52a157a6 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -1013,9 +1013,9 @@ read_request(void) req->pub_auth = xstrdup(q), decode_pub_auth(req); else if (0 == strcasecmp(t, "operation")) req->action = xstrdup(q); - else if(0 == strcasecmp(t, "workers") && strlen(q)) + else if (0 == strcasecmp(t, "workers") && strlen(q)) req->workers = xstrdup(q); - else if(0 == strcasecmp(t, "processes") && strlen(q)) + else if (0 == strcasecmp(t, "processes") && strlen(q)) req->processes = xstrdup(q); } -- 2.47.3