diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-11 18:24:26 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-20 10:48:00 -0300 |
commit | 92aa24ae345c7b50028ea672c0d175d87e906c59 (patch) | |
tree | b67fa48e2f542fcb7f134da7b39c3b42a62ce1bd /launcher/minecraft/mod/Mod.h | |
parent | 97a74d5c1f00a11d331a41b16690f7202fe102a3 (diff) | |
download | PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.tar.gz PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.tar.bz2 PrismLauncher-92aa24ae345c7b50028ea672c0d175d87e906c59.zip |
fix: don't give shared pointer to obj. external to the model
It causes some weird problems and adds refcounting overhead.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/Mod.h')
-rw-r--r-- | launcher/minecraft/mod/Mod.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/Mod.h b/launcher/minecraft/mod/Mod.h index 0835e3b1..49326c83 100644 --- a/launcher/minecraft/mod/Mod.h +++ b/launcher/minecraft/mod/Mod.h @@ -47,6 +47,7 @@ class Mod : public Resource Q_OBJECT public: using Ptr = shared_qobject_ptr<Mod>; + using WeakPtr = QPointer<Mod>; Mod() = default; Mod(const QFileInfo &file); |