1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Fix clang warnings

This commit is contained in:
David Rosca 2015-11-24 17:43:02 +01:00
parent a75002313a
commit 082ae33d33

View File

@ -128,16 +128,16 @@ void PacManager::reloadScript()
QList<QNetworkProxy> PacManager::parseProxies(const QString &string) QList<QNetworkProxy> PacManager::parseProxies(const QString &string)
{ {
QString str = string.trimmed();
QList<QNetworkProxy> proxies; QList<QNetworkProxy> proxies;
string.trimmed();
if (string.isEmpty()) { if (str.isEmpty()) {
return proxies; return proxies;
} }
QStringList parts = string.split(QLatin1Char(';'), QString::SkipEmptyParts); QStringList parts = str.split(QLatin1Char(';'), QString::SkipEmptyParts);
if (parts.isEmpty()) { if (parts.isEmpty()) {
parts.append(string); parts.append(str);
} }
foreach (const QString &s, parts) { foreach (const QString &s, parts) {