rgw/rgw_torrent.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2017-01-31 17:18:41 +01:00 committed by Sage Weil
parent 21a797f823
commit a8f4d635b4

View 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());