From 082ae33d33f692c2f6c95cbf12f55e3a96c30ca3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 24 Nov 2015 17:43:02 +0100 Subject: [PATCH] Fix clang warnings --- src/lib/network/pac/pacmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/network/pac/pacmanager.cpp b/src/lib/network/pac/pacmanager.cpp index 182d62e6f..fbfa5cf54 100644 --- a/src/lib/network/pac/pacmanager.cpp +++ b/src/lib/network/pac/pacmanager.cpp @@ -128,16 +128,16 @@ void PacManager::reloadScript() QList PacManager::parseProxies(const QString &string) { + QString str = string.trimmed(); QList proxies; - string.trimmed(); - if (string.isEmpty()) { + if (str.isEmpty()) { return proxies; } - QStringList parts = string.split(QLatin1Char(';'), QString::SkipEmptyParts); + QStringList parts = str.split(QLatin1Char(';'), QString::SkipEmptyParts); if (parts.isEmpty()) { - parts.append(string); + parts.append(str); } foreach (const QString &s, parts) {