summaryrefslogtreecommitdiffstats
path: root/logic/screenshots/ScreenshotList.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-30 20:11:05 +0200
committerPetr Mrázek <peterix@gmail.com>2014-03-30 20:11:41 +0200
commitfbc29b6a0626f2ce8521dc74e3171b634d68e9e5 (patch)
treed2d79201be585131be2ab0cd7d337237887af5a0 /logic/screenshots/ScreenshotList.h
parente1e1d99102936b419aac52974f1fdb8be835b0d4 (diff)
downloadMultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar
MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.gz
MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.lz
MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.tar.xz
MultiMC-fbc29b6a0626f2ce8521dc74e3171b634d68e9e5.zip
Fix many memory leaks.
Diffstat (limited to 'logic/screenshots/ScreenshotList.h')
-rw-r--r--logic/screenshots/ScreenshotList.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/screenshots/ScreenshotList.h b/logic/screenshots/ScreenshotList.h
index ca6314e9..dc26a698 100644
--- a/logic/screenshots/ScreenshotList.h
+++ b/logic/screenshots/ScreenshotList.h
@@ -10,7 +10,7 @@ class ScreenshotList : public QAbstractListModel
{
Q_OBJECT
public:
- ScreenshotList(BaseInstance *instance, QObject *parent = 0);
+ ScreenshotList(InstancePtr instance, QObject *parent = 0);
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
@@ -31,7 +31,7 @@ public:
return m_screenshots;
}
- BaseInstance *instance() const
+ InstancePtr instance() const
{
return m_instance;
}
@@ -45,7 +45,7 @@ slots:
private:
QList<ScreenshotPtr> m_screenshots;
- BaseInstance *m_instance;
+ InstancePtr m_instance;
};
class ScreenshotLoadTask : public Task