Replace for loop with call to standard library function (#8194)
authorBenjamin Lindley <benjameslindley@gmail.com>
Tue, 5 Mar 2019 07:13:15 +0000 (01:13 -0600)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 5 Mar 2019 07:13:15 +0000 (08:13 +0100)
commite19565c170ba8baf7a90945beb44cb1ef7292e50
tree137c0c9c6a4004b93a47a54d4d8c70ff11de3582
parent5d2624ab8271b490ed5c5eda8ca1e3ea677eadcc
Replace for loop with call to standard library function (#8194)

This loop makes multiple passes over m_stack (type std::list) in order to remove all elements with a specified value. Replacing the loop with a call to std::list::remove does the same job, but in only one pass.
src/gui/mainmenumanager.h