]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common.h: pass some const variables by reference to 'operator<<'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:35:53 +0000 (15:35 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:35:53 +0000 (15:35 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_common.h

index 8e987c5c26e51ad5ca448bd9e31a38c4d1eb88e2..3e12f14f7e838077afdd26887d4c65e8f5d3f5e3 100644 (file)
@@ -512,7 +512,7 @@ struct rgw_bucket {
 };
 WRITE_CLASS_ENCODER(rgw_bucket)
 
-inline ostream& operator<<(ostream& out, const rgw_bucket b) {
+inline ostream& operator<<(ostream& out, const rgw_bucket &b) {
   out << b.name;
   if (b.name.compare(b.pool))
     out << "(@" << b.pool << "[" << b.marker << "])";
@@ -918,7 +918,7 @@ public:
 };
 WRITE_CLASS_ENCODER(rgw_obj)
 
-inline ostream& operator<<(ostream& out, const rgw_obj o) {
+inline ostream& operator<<(ostream& out, const rgw_obj &o) {
   return out << o.bucket.name << ":" << o.object;
 }