From f8a9fec87fd82ecef31d8ae95dd5226d54882337 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 12 Mar 2013 10:18:32 +0100 Subject: [PATCH] rgw/rgw_rados.cc: perform initialization of prefix in initialization list Perform initialization of IntentLogNameFilter:prefix in initialization list instead of constructor body. Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_rados.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f2e32d94876..3c707d4c3e8 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3821,8 +3821,7 @@ class IntentLogNameFilter : public RGWAccessListFilter string prefix; bool filter_exact_date; public: - IntentLogNameFilter(const char *date, struct tm *tm) { - prefix = date; + IntentLogNameFilter(const char *date, struct tm *tm) : prefix(date) { filter_exact_date = !(tm->tm_hour || tm->tm_min || tm->tm_sec); /* if time was specified and is not 00:00:00 we should look at objects from that date */ } -- 2.47.3