From: Danny Al-Gaaf Date: Tue, 31 Jan 2017 16:18:41 +0000 (+0100) Subject: rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators X-Git-Tag: v12.0.1~462^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8f4d635b4f353c4650cca52a42d84b70283794a;p=ceph.git rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_torrent.cc b/src/rgw/rgw_torrent.cc index e85ac8f8637..124de704702 100644 --- a/src/rgw/rgw_torrent.cc +++ b/src/rgw/rgw_torrent.cc @@ -160,7 +160,7 @@ int seed::sha1_process() SHA1 h; list::iterator iter = torrent_bl.begin(); - for (; iter != torrent_bl.end(); iter++) + for (; iter != torrent_bl.end(); ++iter) { bufferlist &bl_info = *iter; sha1(&h, bl_info, (*iter).length());