]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper.cc: don't pass c_str() result to std::string argument
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 13 Feb 2013 16:30:54 +0000 (17:30 +0100)
committerGreg Farnum <greg@inktank.com>
Thu, 14 Feb 2013 18:27:38 +0000 (10:27 -0800)
commitf4cae0005268d737890ec7db63c09caf138ec625
tree191b29128665c09326f618492ef4588f10efa6b4
parentd6c4a62fc8fc8d3ac87086ce1624b2105d08da39
crush/CrushWrapper.cc: don't pass c_str() result to std::string argument

Fix issue found by cppcheck:

[src/crush/CrushWrapper.cc:352]: (performance) Passing the result of
  c_str() to a function that takes std::string as argument no. 4 is
  slow and redundant.
[src/crush/CrushWrapper.cc:388]: (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/crush/CrushWrapper.cc