]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/buffers: check _num directly in list::c_str()
authorKefu Chai <kchai@redhat.com>
Tue, 29 Jun 2021 05:52:04 +0000 (13:52 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 Jun 2021 05:56:02 +0000 (13:56 +0800)
commitd6334e5c433a94da37406943d2675befa2425720
treefcbd38e1ae3cb10cf8e90e4e10869928c9db13df
parent5bb4d374107ba50736617268fde64dd01f246633
common/buffers: check _num directly in list::c_str()

no need to create temporary iterator for comparing it with cend().

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