Small style tweak

This commit is contained in:
Maxime Coste 2015-04-21 13:33:35 +01:00
parent 6e5e831ce6
commit 1d40827da3

View File

@ -391,8 +391,7 @@ void cycle_buffer(const ParametersParser& parser, Context& context)
{ {
if (it == BufferManager::instance().begin()) if (it == BufferManager::instance().begin())
it = BufferManager::instance().end(); it = BufferManager::instance().end();
--it;
it = std::prev(it,1);
} }
else else
{ {