Fix several clazy issues:

* Mixing iterators with const_iterators [-Wclazy-strict-iterators]
This commit is contained in:
wmayer
2022-07-25 00:04:04 +02:00
parent 6ee2c7f865
commit 5354632bfb
3 changed files with 7 additions and 7 deletions

View File

@@ -1421,7 +1421,7 @@ void PythonConsole::saveHistory() const
// only save last 100 entries so we don't inflate forever...
if (hist.length() > 100)
hist = hist.mid(hist.length()-100);
for (QStringList::ConstIterator it = hist.begin(); it != hist.end(); ++it)
for (QStringList::ConstIterator it = hist.cbegin(); it != hist.cend(); ++it)
t << *it << "\n";
f.close();
}