]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common,mgr: pass string_view as "name"
authorKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 04:15:12 +0000 (12:15 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 08:33:56 +0000 (16:33 +0800)
commit6712393fbc534c6c7040bfc9ee2d1268f3adc9dd
tree06786a4f0ccd557d143921bed0a8d4c67b03d234
parent67a2a4e7aa851a21c94415de4aaff655ae3bfaed
common,mgr: pass string_view as "name"

std::string_view works better along with std::string, as it can be
automatically converted from a std::string. and, furthermore, it
can potentially save the overhead of more strlen() calls.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/Formatter.cc
src/common/Formatter.h
src/common/HTMLFormatter.cc
src/common/HTMLFormatter.h
src/common/ceph_json.cc
src/common/ceph_json.h
src/common/cmdparse.cc
src/mgr/PyFormatter.cc
src/mgr/PyFormatter.h
src/rgw/rgw_formats.cc
src/rgw/rgw_formats.h