(performance) Prefer prefix ++/-- operators for non-primitive types

This commit is contained in:
Jacek Jendrzej
2016-02-16 13:02:10 +01:00
parent 93f3007be1
commit 7db16952f6
5 changed files with 10 additions and 10 deletions

View File

@@ -3887,7 +3887,7 @@ bool CMovieBrowser::showYTMenu(bool calledExternally)
m_settings.ytmode = newmode;
m_settings.ytsearch_history.push_front(search);
std::list<std::string>::iterator it = m_settings.ytsearch_history.begin();
it++;
++it;
while (it != m_settings.ytsearch_history.end()) {
if (*it == search)
it = m_settings.ytsearch_history.erase(it);