diff --git a/src/base/profile.cpp b/src/base/profile.cpp index 6facc409e..f8261a578 100644 --- a/src/base/profile.cpp +++ b/src/base/profile.cpp @@ -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); +} diff --git a/src/base/profile.h b/src/base/profile.h index ce52193de..40f672fc1 100644 --- a/src/base/profile.h +++ b/src/base/profile.h @@ -83,9 +83,6 @@ private: static Profile *m_instance; }; -inline QString specialFolderLocation(SpecialFolder folder) -{ - return Profile::instance().location(folder); -} +QString specialFolderLocation(SpecialFolder folder); #endif // QBT_PROFILE_H diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 8a38318e9..709abd481 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -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};