Browse Source

Revise inline keyword usage

And let compiler decide whether to inline functions.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
7a5e883cd2
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 5
      src/base/profile.cpp
  2. 5
      src/base/profile.h
  3. 2
      src/webui/webapplication.cpp

5
src/base/profile.cpp

@ -112,3 +112,8 @@ QString Profile::fromPortablePath(const QString &portablePath) const
{ {
return m_pathConverterImpl->fromPortablePath(portablePath); return m_pathConverterImpl->fromPortablePath(portablePath);
} }
QString specialFolderLocation(const SpecialFolder folder)
{
return Profile::instance().location(folder);
}

5
src/base/profile.h

@ -83,9 +83,6 @@ private:
static Profile *m_instance; static Profile *m_instance;
}; };
inline QString specialFolderLocation(SpecialFolder folder) QString specialFolderLocation(SpecialFolder folder);
{
return Profile::instance().location(folder);
}
#endif // QBT_PROFILE_H #endif // QBT_PROFILE_H

2
src/webui/webapplication.cpp

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

Loading…
Cancel
Save