From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 15:24:27 +0000 (+0100) Subject: Client: remove a std::string::c_str() calls X-Git-Tag: v0.78~138^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8488e71053a9ab07e4933e7c96b5eb9a4f45b888;p=ceph.git Client: remove a std::string::c_str() calls [src/client/Client.cc:6821]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 2 is slow and redundant. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 248bb8ff863d..d4a91a088c8a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -6818,7 +6818,7 @@ int Client::ll_lookup(Inode *parent, const char *name, struct stat *attr, Inode *in; int r = 0; - r = _lookup(parent, dname.c_str(), &in); + r = _lookup(parent, dname, &in); if (r < 0) { attr->st_ino = 0; goto out;