Use preincrement for iterators instead of postincrement

This commit is contained in:
Константин Гончарик 2012-07-13 21:48:19 +03:00 committed by Christophe Dumez
parent 5874c7bd57
commit abf8c179fc
9 changed files with 28 additions and 28 deletions

View file

@ -215,7 +215,7 @@ QString fsutils::fixFileNames(const QString& path)
if (parts.isEmpty()) return path;
QByteArray last_part = parts.takeLast();
QList<QByteArray>::iterator it;
for (it = parts.begin(); it != parts.end(); it++) {
for (it = parts.begin(); it != parts.end(); ++it) {
// Make sure the filename is not too long
if (it->size() > MAX_FILENAME_BYTES) {
qWarning() << "Folder" << *it << "was cut because it was too long";