From a8f4d635b4f353c4650cca52a42d84b70283794a Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 31 Jan 2017 17:18:41 +0100 Subject: [PATCH] rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_torrent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());