From: Radoslaw Zarzynski Date: Sun, 18 Nov 2018 04:32:32 +0000 (+0100) Subject: common: drop decltype(_buffers) from include/buffers.h. X-Git-Tag: v14.1.0~222^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25077%2Fhead;p=ceph.git common: drop decltype(_buffers) from include/buffers.h. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/include/buffer.h b/src/include/buffer.h index 50e0f2483e4f..7bf5c502ce18 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -1098,9 +1098,8 @@ namespace buffer CEPH_BUFFER_API { // clone non-shareable buffers (make shareable) void make_shareable() { - decltype(_buffers)::iterator pb; - for (pb = _buffers.begin(); pb != _buffers.end(); ++pb) { - (void) pb->make_shareable(); + for (auto& bp : _buffers) { + bp.make_shareable(); } }