From 10f5a46aee2b5848b8ade55065fc04e358ba8216 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 28 Sep 2015 16:03:50 +0200 Subject: [PATCH] rgw/rgw_rados.h: init member in ctor list Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_rados.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 57b2135bace11..f57d34f86bc15 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -629,8 +629,7 @@ struct RGWObjState { RGWObjState() : is_atomic(false), has_attrs(0), exists(false), size(0), mtime(0), epoch(0), fake_tag(false), has_manifest(false), has_data(false), prefetch_data(false), keep_tail(false), is_olh(false) {} - RGWObjState(const RGWObjState& rhs) { - obj = rhs.obj; + RGWObjState(const RGWObjState& rhs) : obj (rhs.obj) { is_atomic = rhs.is_atomic; has_attrs = rhs.has_attrs; exists = rhs.exists; -- 2.39.5