From f104e161fbcb1449b35ed4019cbfc204faeb3e6a Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 6 Feb 2019 11:44:04 -0800 Subject: [PATCH] common/RefCountedObj: move private members To follow code-style guidelines. Signed-off-by: Patrick Donnelly --- src/common/RefCountedObj.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5