mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Use preincrement for iterators instead of postincrement
This commit is contained in:
parent
5874c7bd57
commit
abf8c179fc
9 changed files with 28 additions and 28 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue