]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_log.cc: don't pass c_str() result to std::string argument
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 15:01:48 +0000 (16:01 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:38 +0000 (10:27 -0800)
commitfb811ecff83750586cdd7dfbd1d28eee7ead8e70
tree75937f3ebf8b011b81e9003bffb9ec93578c9a5b
parent59f8c8d8ec8a24e6b379ff3702aa600aba9ee39c
rgw/rgw_log.cc: don't pass c_str() result to std::string argument

Fix issue found by cppcheck:

[src/rgw/rgw_log.cc:340]: (performance) Passing the result of c_str() to a
  function that takes std::string as argument no. 4 is slow and redundant.

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