]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/RefCountedObj: move private members
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 6 Feb 2019 19:44:04 +0000 (11:44 -0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Apr 2019 22:59:41 +0000 (06:59 +0800)
To follow code-style guidelines.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/RefCountedObj.h

index eebedf22c752054bf871a93cdb10428cc963f035..4cd4c9fd0a74a37313f881f62a952844f4aa0534 100644 (file)
@@ -26,9 +26,6 @@
 #include "include/ceph_assert.h"
 
 struct RefCountedObject {
-private:
-  mutable std::atomic<uint64_t> nref;
-  CephContext *cct;
 public:
   RefCountedObject(CephContext *c = NULL, int n=1) : nref(n), cct(c) {}
   virtual ~RefCountedObject() {
@@ -73,6 +70,10 @@ public:
   uint64_t get_nref() const {
     return nref;
   }
+
+private:
+  mutable std::atomic<uint64_t> nref;
+  CephContext *cct;
 };
 
 #ifndef WITH_SEASTAR