trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-3588 clang-format
Date Thu, 07 May 2015 23:09:15 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 01cab9286 -> 08a0efed3


TS-3588 clang-format


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/08a0efed
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/08a0efed
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/08a0efed

Branch: refs/heads/master
Commit: 08a0efed37afed42489f0a0e1dcab34fbf54a17f
Parents: 01cab92
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Thu May 7 17:09:10 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Thu May 7 17:09:10 2015 -0600

----------------------------------------------------------------------
 .../background_fetch/background_fetch.cc        | 28 ++++++++++++++------
 1 file changed, 20 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/08a0efed/plugins/experimental/background_fetch/background_fetch.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/background_fetch/background_fetch.cc b/plugins/experimental/background_fetch/background_fetch.cc
index cfdff2a..ae6b04c 100644
--- a/plugins/experimental/background_fetch/background_fetch.cc
+++ b/plugins/experimental/background_fetch/background_fetch.cc
@@ -62,30 +62,42 @@ typedef std::map<uint32_t, BgFetchRuleStruct> BgFetchRuleMap;
 class BgFetchRulesConfig
 {
 public:
-  BgFetchRulesConfig() : _ref_count(0), _cont(NULL), _bgFetchRuleMap(NULL) {};
+  BgFetchRulesConfig() : _ref_count(0), _cont(NULL), _bgFetchRuleMap(NULL){};
 
-  void incrRefCount() {
+  void
+  incrRefCount()
+  {
     ink_atomic_increment(&_ref_count, 1);
   }
 
-  void decrRefCount() {
+  void
+  decrRefCount()
+  {
     if (1 >= ink_atomic_decrement(&_ref_count, 1))
       delete this;
   }
 
-  void setRuleMap(BgFetchRuleMap *ruleMap) {
+  void
+  setRuleMap(BgFetchRuleMap *ruleMap)
+  {
     _bgFetchRuleMap = ruleMap;
   }
 
-  BgFetchRuleMap* getRuleMap() const {
+  BgFetchRuleMap *
+  getRuleMap() const
+  {
     return _bgFetchRuleMap;
   }
 
-  void setCont(TSCont cont) {
+  void
+  setCont(TSCont cont)
+  {
     _cont = cont;
   }
 
-  TSCont getCont() const {
+  TSCont
+  getCont() const
+  {
     return _cont;
   }
 
@@ -1056,7 +1068,7 @@ TSRemapDoRemap(void *ih, TSHttpTxn txnp, TSRemapRequestInfo * /* rri
*/)
 
   TSDebug(PLUGIN_NAME, "background fetch TSRemapDoRemap...");
 
-  BgFetchRulesConfig *rulesConf = static_cast<BgFetchRulesConfig*> (ih);
+  BgFetchRulesConfig *rulesConf = static_cast<BgFetchRulesConfig *>(ih);
   rulesConf->incrRefCount();
   TSHttpTxnHookAdd(txnp, TS_HTTP_READ_RESPONSE_HDR_HOOK, rulesConf->getCont());
   TSHttpTxnHookAdd(txnp, TS_HTTP_TXN_CLOSE_HOOK, rulesConf->getCont());


Mime
View raw message