From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 14:35:53 +0000 (+0100) Subject: rgw/rgw_common.h: pass some const variables by reference to 'operator<<' X-Git-Tag: v0.60~106^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f106e1a5a7fdcb8009b116780011fc29d93ee025;p=ceph.git rgw/rgw_common.h: pass some const variables by reference to 'operator<<' Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 8e987c5c26e5..3e12f14f7e83 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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; }