Skip to content

Commit

Permalink
Use Q_FOREACH
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Apr 9, 2023
1 parent 05ec677 commit 1b1e832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qnetworkaccessmanager.patch
Expand Up @@ -31,7 +31,7 @@
+ .arg(QDateTime::currentDateTime().toString())
+ .arg(QDir::toNativeSeparators(dataDir.absolutePath())).toUtf8());
+ dataDir.mkpath(fileName);
+ foreach (const QChar &c, urlPath.startsWith(QLatin1Char('/')) ? urlPath.mid(1) : urlPath) {
+ Q_FOREACH (const QChar &c, urlPath.startsWith(QLatin1Char('/')) ? urlPath.mid(1) : urlPath) {
+ fileName += (c.isLetterOrNumber()) ? c : QChar::fromLatin1('-');
+ }
+ debug.write(QString::fromLatin1("%1 fileName %2\r")
Expand Down

0 comments on commit 1b1e832

Please sign in to comment.