mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
cookiejar: port foreach -> range-based for
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
def38a2da4
commit
169f7cba65
@ -110,7 +110,7 @@ bool CookieJar::matchDomain(QString cookieDomain, QString siteDomain) const
|
|||||||
|
|
||||||
bool CookieJar::listMatchesDomain(const QStringList &list, const QString &cookieDomain) const
|
bool CookieJar::listMatchesDomain(const QStringList &list, const QString &cookieDomain) const
|
||||||
{
|
{
|
||||||
foreach (const QString &d, list) {
|
for (const QString &d : list) {
|
||||||
if (matchDomain(d, cookieDomain)) {
|
if (matchDomain(d, cookieDomain)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user