From: Patrick Donnelly Date: Wed, 6 Feb 2019 19:44:04 +0000 (-0800) Subject: common/RefCountedObj: move private members X-Git-Tag: v15.1.0~2896^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f104e161fbcb1449b35ed4019cbfc204faeb3e6a;p=ceph-ci.git common/RefCountedObj: move private members To follow code-style guidelines. Signed-off-by: Patrick Donnelly --- diff --git a/src/common/RefCountedObj.h b/src/common/RefCountedObj.h index eebedf22c75..4cd4c9fd0a7 100644 --- a/src/common/RefCountedObj.h +++ b/src/common/RefCountedObj.h @@ -26,9 +26,6 @@ #include "include/ceph_assert.h" struct RefCountedObject { -private: - mutable std::atomic 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 nref; + CephContext *cct; }; #ifndef WITH_SEASTAR