From 5cc85a542ed918ededa875d861d7ba23d482cbf1 Mon Sep 17 00:00:00 2001 From: Tad Marshall Date: Sun, 18 Nov 2012 06:54:31 -0500 Subject: Whitespace; tabs to spaces --- src/mongo/util/intrusive_counter.cpp | 6 +++--- src/mongo/util/intrusive_counter.h | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/mongo') diff --git a/src/mongo/util/intrusive_counter.cpp b/src/mongo/util/intrusive_counter.cpp index 38712e44c6f..7c86fc4e416 100644 --- a/src/mongo/util/intrusive_counter.cpp +++ b/src/mongo/util/intrusive_counter.cpp @@ -38,12 +38,12 @@ namespace mongo { } void IntrusiveCounterUnsigned::addRef() const { - ++counter; + ++counter; } void IntrusiveCounterUnsigned::release() const { - if (!--counter) - delete this; + if (!--counter) + delete this; } } diff --git a/src/mongo/util/intrusive_counter.h b/src/mongo/util/intrusive_counter.h index 83f1f75a670..75dec90b899 100644 --- a/src/mongo/util/intrusive_counter.h +++ b/src/mongo/util/intrusive_counter.h @@ -43,29 +43,29 @@ namespace mongo { class IntrusiveCounter : boost::noncopyable { public: - virtual ~IntrusiveCounter() {}; + virtual ~IntrusiveCounter() {}; - // these are here for the boost intrusive_ptr<> class - friend inline void intrusive_ptr_add_ref(const IntrusiveCounter *pIC) { - pIC->addRef(); }; - friend inline void intrusive_ptr_release(const IntrusiveCounter *pIC) { - pIC->release(); }; + // these are here for the boost intrusive_ptr<> class + friend inline void intrusive_ptr_add_ref(const IntrusiveCounter *pIC) { + pIC->addRef(); }; + friend inline void intrusive_ptr_release(const IntrusiveCounter *pIC) { + pIC->release(); }; - virtual void addRef() const = 0; - virtual void release() const = 0; + virtual void addRef() const = 0; + virtual void release() const = 0; }; class IntrusiveCounterUnsigned : public IntrusiveCounter { public: - // virtuals from IntrusiveCounter - virtual void addRef() const; - virtual void release() const; + // virtuals from IntrusiveCounter + virtual void addRef() const; + virtual void release() const; - IntrusiveCounterUnsigned(); + IntrusiveCounterUnsigned(); private: - mutable unsigned counter; + mutable unsigned counter; }; /// This is an alternative base class to the above ones (will replace them eventually) @@ -121,7 +121,7 @@ namespace mongo { namespace mongo { inline IntrusiveCounterUnsigned::IntrusiveCounterUnsigned(): - counter(0) { + counter(0) { } }; -- cgit v1.2.1