diff options
author | Tad Marshall <tad@10gen.com> | 2012-11-18 06:54:31 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-11-18 06:54:31 -0500 |
commit | 5cc85a542ed918ededa875d861d7ba23d482cbf1 (patch) | |
tree | 2dd5f31fcf3fd70c01e08d3833390ecf3f7b3148 /src/mongo | |
parent | 7074841fad6e29c190d22ca2c1df63ab0b8e3e4c (diff) | |
download | mongo-5cc85a542ed918ededa875d861d7ba23d482cbf1.tar.gz |
Whitespace; tabs to spaces
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/util/intrusive_counter.cpp | 6 | ||||
-rw-r--r-- | src/mongo/util/intrusive_counter.h | 28 |
2 files changed, 17 insertions, 17 deletions
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) { } }; |