From: Amos Jeffries Date: Tue, 5 Oct 2010 12:29:55 +0000 (+1300) Subject: more const correctness in Subscription class X-Git-Tag: take08~55^2~124^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=822b27ab529287cf2b682fc88635b0d95ca09690;p=thirdparty%2Fsquid.git more const correctness in Subscription class --- diff --git a/src/base/Subscription.h b/src/base/Subscription.h index b9deea45b9..5f481df33f 100644 --- a/src/base/Subscription.h +++ b/src/base/Subscription.h @@ -8,7 +8,7 @@ * * The emitter class needs to accept and store a Subscription::Pointer. * The callback() function will spawn AsyncCalls to be filled out and - * scheduled wth every event happening. + * scheduled with every event happening. */ class Subscription: public RefCountable { @@ -16,8 +16,7 @@ public: typedef RefCount Pointer; /// returns a call object to be used for the next call back - virtual AsyncCall::Pointer callback() = 0; -// virtual AsyncCall::Pointer callback() const = 0; + virtual AsyncCall::Pointer callback() const = 0; }; /** @@ -34,8 +33,7 @@ class CallSubscription: public Subscription { public: CallSubscription(const RefCount &aCall) : call(aCall) {}; - virtual AsyncCall::Pointer callback() { return new Call_(call); }; -// virtual AsyncCall::Pointer callback() const { return new Call_(call); }; + virtual AsyncCall::Pointer callback() const { return new Call_(call); }; private: RefCount call; ///< gets copied to create callback calls