]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 31 Jan 2017 16:18:41 +0000 (17:18 +0100)
committerSage Weil <sage@redhat.com>
Thu, 9 Feb 2017 02:54:25 +0000 (21:54 -0500)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_torrent.cc

index e85ac8f863771e82cc4516329037f604ca9277c5..124de7047026656eed656247963be3ddb0abf0ac 100644 (file)
@@ -160,7 +160,7 @@ int seed::sha1_process()
 
   SHA1 h;
   list<bufferlist>::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());