aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourceFolderModel.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2023-05-28 10:11:43 -0300
committerGitHub <noreply@github.com>2023-05-28 10:11:43 -0300
commitce2d58bb7d7e99da61b906253c0fea7815a82862 (patch)
treef958cd21fee8cba488e82229a1457db368079221 /launcher/minecraft/mod/ResourceFolderModel.h
parentf24211e8b5d9af24ac3e27b0fdb50000a962c35f (diff)
parent7af116fb006e2eb62429740bd0abbe14f50ff244 (diff)
downloadPrismLauncher-ce2d58bb7d7e99da61b906253c0fea7815a82862.tar.gz
PrismLauncher-ce2d58bb7d7e99da61b906253c0fea7815a82862.tar.bz2
PrismLauncher-ce2d58bb7d7e99da61b906253c0fea7815a82862.zip
Merge pull request #1083 from Ryex/fix/memory-leaks-develop
Diffstat (limited to 'launcher/minecraft/mod/ResourceFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ResourceFolderModel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.h b/launcher/minecraft/mod/ResourceFolderModel.h
index fdf5f331..0a35e1bc 100644
--- a/launcher/minecraft/mod/ResourceFolderModel.h
+++ b/launcher/minecraft/mod/ResourceFolderModel.h
@@ -26,7 +26,7 @@ class QSortFilterProxyModel;
class ResourceFolderModel : public QAbstractListModel {
Q_OBJECT
public:
- ResourceFolderModel(QDir, std::shared_ptr<const BaseInstance>, QObject* parent = nullptr, bool create_dir = true);
+ ResourceFolderModel(QDir, BaseInstance* instance, QObject* parent = nullptr, bool create_dir = true);
~ResourceFolderModel() override;
/** Starts watching the paths for changes.
@@ -191,7 +191,7 @@ class ResourceFolderModel : public QAbstractListModel {
bool m_can_interact = true;
QDir m_dir;
- std::shared_ptr<const BaseInstance> m_instance;
+ BaseInstance* m_instance;
QFileSystemWatcher m_watcher;
bool m_is_watching = false;