Fix warning introduced in "Adjust a double leading slash..."
Change-Id: Id89fd3983123c0ba302c493b54437dd75e419e01 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
parent
113af57061
commit
3127f23e3a
@ -2645,7 +2645,7 @@ static QUrl adjustFtpPath(QUrl url)
|
|||||||
{
|
{
|
||||||
if (url.scheme() == ftpScheme()) {
|
if (url.scheme() == ftpScheme()) {
|
||||||
QString path = url.path();
|
QString path = url.path();
|
||||||
if (path.startsWith("//"))
|
if (path.startsWith(QLatin1String("//")))
|
||||||
url.setPath(QLatin1String("/%2F") + path.midRef(2));
|
url.setPath(QLatin1String("/%2F") + path.midRef(2));
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
|
Loading…
Reference in New Issue
Block a user