From e624085f2e6886407fb2d9b8f97cf4605b31cab2 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 30 Apr 2014 22:49:29 +0200 Subject: [PATCH] ObjectStore.h: pass const string parameter by reference Signed-off-by: Danny Al-Gaaf --- src/os/ObjectStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 15ed31f0311ae..084bbdba4c57d 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -1327,7 +1327,7 @@ public: } int getattr( coll_t cid, const ghobject_t& oid, - const string name, bufferlist& value) { + const string& name, bufferlist& value) { bufferptr bp; int r = getattr(cid, oid, name.c_str(), bp); value.push_back(bp); -- 2.39.5