From: Alex Rousskov Date: Sat, 12 Mar 2016 06:16:09 +0000 (-0700) Subject: Improve class declaration consistency a bit. No functionality changes. X-Git-Tag: SQUID_4_0_8~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81da7e70cfc2666d56ca92c0d4a6021934ef4e13;p=thirdparty%2Fsquid.git Improve class declaration consistency a bit. No functionality changes. --- diff --git a/src/auth/CredentialsCache.h b/src/auth/CredentialsCache.h index 8a7c44d4bc..330d5b7ec6 100644 --- a/src/auth/CredentialsCache.h +++ b/src/auth/CredentialsCache.h @@ -20,12 +20,8 @@ namespace Auth { /// Cache of Auth::User credentials, keyed by Auth::User::userKey class CredentialsCache { -private: CBDATA_CLASS(CredentialsCache); - /// key is User::userKey(), mapped value is User::Pointer - typedef std::unordered_map StoreType; - public: explicit CredentialsCache(const char *name, const char * const eventName); @@ -70,6 +66,8 @@ private: /// whether a cleanup (garbage collection) event has been scheduled bool gcScheduled_; + /// key is User::userKey(), mapped value is User::Pointer + typedef std::unordered_map StoreType; StoreType store_; // c-string raw pointer used as event name diff --git a/src/comm/ConnOpener.h b/src/comm/ConnOpener.h index 021831de3d..5a67b048d4 100644 --- a/src/comm/ConnOpener.h +++ b/src/comm/ConnOpener.h @@ -26,10 +26,6 @@ class ConnOpener : public AsyncJob { CBDATA_CLASS(ConnOpener); -protected: - virtual void start(); - virtual void swanSong(); - public: void noteAbort() { mustStop("externally aborted"); } @@ -43,6 +39,10 @@ public: void setHost(const char *); ///< set the hostname note for this connection const char * getHost() const; ///< get the hostname noted for this connection +protected: + virtual void start(); + virtual void swanSong(); + private: // Undefined because two openers cannot share a connection ConnOpener(const ConnOpener &);