]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_rest_swift.cc: don't pass c_str() result to std::string argument
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 17:42:47 +0000 (18:42 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:39 +0000 (10:27 -0800)
commitb14994e51b73b66a13d4f16f620d2b170ea3d670
treec2465d1b6cd793e2ac6602b897c32e3a091be651
parentdfe1b452376e2debe58683154801f963310f736b
rgw/rgw_rest_swift.cc: don't pass c_str() result to std::string argument

Fix issue found by cppcheck:
[src/rgw/rgw_rest_swift.cc:770]: (performance) Passing the result of
  c_str() to a function that takes std::string as argument no. 1 is
  slow and redundant.

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