Revise inline keyword usage

And let compiler decide whether to inline functions.
This commit is contained in:
Chocobo1 2019-07-14 17:26:56 +08:00
parent f6f8aaf3db
commit 7a5e883cd2
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 7 additions and 5 deletions

View file

@ -88,7 +88,7 @@ namespace
return ret;
}
inline QUrl urlFromHostHeader(const QString &hostHeader)
QUrl urlFromHostHeader(const QString &hostHeader)
{
if (!hostHeader.contains(QLatin1String("://")))
return {QLatin1String("http://") + hostHeader};