And let compiler decide whether to inline functions.
@ -112,3 +112,8 @@ QString Profile::fromPortablePath(const QString &portablePath) const
{
return m_pathConverterImpl->fromPortablePath(portablePath);
}
QString specialFolderLocation(const SpecialFolder folder)
return Profile::instance().location(folder);
@ -83,9 +83,6 @@ private:
static Profile *m_instance;
};
inline QString specialFolderLocation(SpecialFolder folder)
QString specialFolderLocation(SpecialFolder folder);
#endif // QBT_PROFILE_H
@ -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};