fix: raw-pointers and leaks in ModFolderLoadTask

Co-authored-by: timoreo <contact@timoreo.fr>
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-07-17 11:56:23 -03:00
parent 6bb8332b4b
commit 54b335711a
3 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,7 @@ class ModFolderLoadTask : public QObject, public QRunnable
Q_OBJECT
public:
struct Result {
QMap<QString, Mod*> mods;
QMap<QString, Mod::Ptr> mods;
};
using ResultPtr = std::shared_ptr<Result>;
ResultPtr result() const {