mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
replace foreach macro with standard for each loop (#5485)
This commit is contained in:
parent
0cbad25385
commit
c148c8df7f
17 changed files with 31 additions and 31 deletions
|
|
@ -161,7 +161,7 @@ void QxtMailAttachment::setExtraHeaders(const QHash<QString, QString>& a)
|
|||
{
|
||||
QHash<QString, QString>& headers = qxt_d->extraHeaders;
|
||||
headers.clear();
|
||||
foreach(const QString& key, a.keys())
|
||||
for (const QString& key: a.keys())
|
||||
{
|
||||
headers[key.toLower()] = a[key];
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ QByteArray QxtMailAttachment::mimeData()
|
|||
}
|
||||
|
||||
QByteArray rv = "Content-Type: " + qxt_d->contentType.toLatin1() + "\r\nContent-Transfer-Encoding: base64\r\n";
|
||||
foreach(const QString& r, qxt_d->extraHeaders.keys())
|
||||
for(const QString& r: qxt_d->extraHeaders.keys())
|
||||
{
|
||||
rv += qxt_fold_mime_header(r.toLatin1(), extraHeader(r));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue