]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: convert BodyPipe to MEMPROXY_CLASS
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Mar 2015 01:44:26 +0000 (17:44 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Mar 2015 01:44:26 +0000 (17:44 -0800)
BodyPipe is ref-counted. Such classes should not be using CBDATA_CLASS
for smart pointer referencing and memory management. They use RefCount
for smart pointer referencing, MEMPROXY_CLASS for memory management.

src/BodyPipe.cc
src/BodyPipe.h

index 44dacd9438c2310d310dd720107f6e72644b7c17..7731bf05bb1f58fe5f9b8b84c1fae0d102361bd4 100644 (file)
@@ -11,8 +11,6 @@
 #include "base/TextException.h"
 #include "BodyPipe.h"
 
-CBDATA_CLASS_INIT(BodyPipe);
-
 // BodySink is a BodyConsumer class which  just consume and drops
 // data from a BodyPipe
 class BodySink: public BodyConsumer
index f75bff2056966edd81d1e778595e569dc3858b59..e69b9067d76637f0dec7cafb0c1d448fcf6e111c 100644 (file)
@@ -89,7 +89,7 @@ private:
  */
 class BodyPipe: public RefCountable
 {
-    CBDATA_CLASS(BodyPipe);
+    MEMPROXY_CLASS(BodyPipe);
 
 public:
     typedef RefCount<BodyPipe> Pointer;