mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Replace QScopedPointer with std::unqiue_ptr
These 2 types are very similar and we should prefer the one from C++ standard library, this reduces the number of types in our code base. Also see: https://stackoverflow.com/questions/40346393/should-i-use-qscopedpointer-or-stdunique-ptr#comment67966940_40346991
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <QScopedPointer>
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
|
||||
@@ -78,8 +77,8 @@ private:
|
||||
bool convertPathsToProfileRelative);
|
||||
void ensureDirectoryExists(SpecialFolder folder);
|
||||
|
||||
QScopedPointer<Private::Profile> m_profileImpl;
|
||||
QScopedPointer<Private::PathConverter> m_pathConverterImpl;
|
||||
const std::unique_ptr<Private::Profile> m_profileImpl;
|
||||
const std::unique_ptr<Private::PathConverter> m_pathConverterImpl;
|
||||
static Profile *m_instance;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user