mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Refactor SettingsStorage implementation
Remove redundant fragmentation of logic. PR #17354.
This commit is contained in:
committed by
GitHub
parent
437ddd3f76
commit
d3e7e8a630
@@ -43,8 +43,6 @@ namespace Private
|
||||
class PathConverter;
|
||||
}
|
||||
|
||||
using SettingsPtr = std::unique_ptr<QSettings>;
|
||||
|
||||
enum class SpecialFolder
|
||||
{
|
||||
Cache,
|
||||
@@ -62,7 +60,7 @@ public:
|
||||
static const Profile *instance();
|
||||
|
||||
Path location(SpecialFolder folder) const;
|
||||
SettingsPtr applicationSettings(const QString &name) const;
|
||||
std::unique_ptr<QSettings> applicationSettings(const QString &name) const;
|
||||
|
||||
Path rootPath() const;
|
||||
QString configurationName() const;
|
||||
|
||||
Reference in New Issue
Block a user