trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [1/2] trafficserver git commit: [plugin:inliner] Rename null_transform entry to inliner_transform. Add virtual destructor to HtmlParser.
Date Sat, 19 Mar 2016 16:32:54 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 0468512bb -> 1e9c9484c


[plugin:inliner] Rename null_transform entry to inliner_transform.
Add virtual destructor to HtmlParser.


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

Branch: refs/heads/master
Commit: 1448b4b683c087b2fcd67e1ac0d158742edc491e
Parents: 0468512
Author: Daniel Vitor Morilha <dmorilha@yahoo-inc.com>
Authored: Fri Mar 4 09:54:56 2016 -0800
Committer: Alan M. Carroll <amc@apache.org>
Committed: Sat Mar 19 11:32:20 2016 -0500

----------------------------------------------------------------------
 plugins/experimental/inliner/ats-inliner.cc | 4 ++--
 plugins/experimental/inliner/html-parser.h  | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1448b4b6/plugins/experimental/inliner/ats-inliner.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/inliner/ats-inliner.cc b/plugins/experimental/inliner/ats-inliner.cc
index 8da0089..594d8a4 100644
--- a/plugins/experimental/inliner/ats-inliner.cc
+++ b/plugins/experimental/inliner/ats-inliner.cc
@@ -95,7 +95,7 @@ handle_transform(const TSCont c)
 }
 
 int
-null_transform(TSCont c, TSEvent e, void *)
+inliner_transform(TSCont c, TSEvent e, void *)
 {
   if (TSVConnClosedGet(c)) {
     TSDebug(PLUGIN_TAG, "connection closed");
@@ -165,7 +165,7 @@ void
 transform_add(const TSHttpTxn t)
 {
   assert(t != NULL);
-  const TSVConn vconnection = TSTransformCreate(null_transform, t);
+  const TSVConn vconnection = TSTransformCreate(inliner_transform, t);
   assert(vconnection != NULL);
   TSHttpTxnHookAdd(t, TS_HTTP_RESPONSE_TRANSFORM_HOOK, vconnection);
 }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1448b4b6/plugins/experimental/inliner/html-parser.h
----------------------------------------------------------------------
diff --git a/plugins/experimental/inliner/html-parser.h b/plugins/experimental/inliner/html-parser.h
index 646c2fb..02c58d0 100644
--- a/plugins/experimental/inliner/html-parser.h
+++ b/plugins/experimental/inliner/html-parser.h
@@ -134,6 +134,7 @@ namespace inliner
     AttributeParser attributeParser_;
 
     HtmlParser(void) : state_(State::kUndefined), tag_(Tag::kUndefined) {}
+    virtual ~HtmlParser() {}
     bool parseTag(const char);
     size_t parse(const char *, size_t, size_t o = 0);
     virtual void handleImage(const Attributes &) = 0;


Mime
View raw message