From 27186b2c36f07115e096b6b76fc6b93ebbab2c80 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 28 Feb 2015 17:44:26 -0800 Subject: [PATCH] Cleanup: convert BodyPipe to MEMPROXY_CLASS 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 | 2 -- src/BodyPipe.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BodyPipe.cc b/src/BodyPipe.cc index 44dacd9438..7731bf05bb 100644 --- a/src/BodyPipe.cc +++ b/src/BodyPipe.cc @@ -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 diff --git a/src/BodyPipe.h b/src/BodyPipe.h index f75bff2056..e69b9067d7 100644 --- a/src/BodyPipe.h +++ b/src/BodyPipe.h @@ -89,7 +89,7 @@ private: */ class BodyPipe: public RefCountable { - CBDATA_CLASS(BodyPipe); + MEMPROXY_CLASS(BodyPipe); public: typedef RefCount Pointer; -- 2.39.5