mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Apply suggestions from code review
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
parent
e2cdcb2691
commit
6f103cfdc8
1 changed files with 2 additions and 5 deletions
|
@ -653,11 +653,8 @@ namespace
|
||||||
if (relativePath.startsWith(u'/'))
|
if (relativePath.startsWith(u'/'))
|
||||||
relativePath = relativePath.mid(1);
|
relativePath = relativePath.mid(1);
|
||||||
|
|
||||||
QString absoluteUrl;
|
const QString absoluteUrl = !host.isEmpty()
|
||||||
if (!host.isEmpty())
|
? (defaultScheme + u":" + host) : (normalizedBaseUrl + relativePath);
|
||||||
absoluteUrl = defaultScheme + u":" + host;
|
|
||||||
else
|
|
||||||
absoluteUrl = normalizedBaseUrl + relativePath;
|
|
||||||
const QString fullMatch = match.captured(0);
|
const QString fullMatch = match.captured(0);
|
||||||
const QString prefix = match.captured(1);
|
const QString prefix = match.captured(1);
|
||||||
const QString suffix = match.captured(7);
|
const QString suffix = match.captured(7);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue