]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.cc: perform initialization of prefix in initialization list
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 12 Mar 2013 09:18:32 +0000 (10:18 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 12 Mar 2013 15:59:42 +0000 (16:59 +0100)
Perform initialization of IntentLogNameFilter:prefix in initialization list
instead of constructor body.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index f2e32d948765ae29730d1bf7c221ad1e900cef07..3c707d4c3e8f0e374ffe5a526ee9b134a598cdf2 100644 (file)
@@ -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 */
   }