]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/cmdparse: do not create temp string for writing ostream
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 06:57:28 +0000 (14:57 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 14:11:58 +0000 (22:11 +0800)
commitabca699b59168346bc6548abde351c569354401d
tree66129dbd0abcb1f170aacd3ab952239f4ebe0eaa
parent0893d18b4d20fb27779eb9c78233dff73e5caad8
common/cmdparse: do not create temp string for writing ostream

ostream is able to handle std::string_view, so no need to create
temporary std::string instance for writing to a std::ostream

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/cmdparse.cc