From: Danny Al-Gaaf Date: Tue, 12 Mar 2013 09:18:32 +0000 (+0100) Subject: rgw/rgw_rados.cc: perform initialization of prefix in initialization list X-Git-Tag: v0.60~96^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8a9fec87fd82ecef31d8ae95dd5226d54882337;p=ceph.git 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 --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f2e32d948765..3c707d4c3e8f 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 */ }