]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/cmdparse: do not create temp string for cmd_getval()
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 06:54:02 +0000 (14:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 14:11:58 +0000 (22:11 +0800)
commit0893d18b4d20fb27779eb9c78233dff73e5caad8
treeb126c07fc44abe1ba6c9ba121b1b17dab7d81fb7
parent3a2f0f0103f19d6b8b2cec190cb91e61ce109a72
common/cmdparse: do not create temp string for cmd_getval()

cmd_getval() consumes string_view, so no need to create a temporary
std::string instance for it.

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