summaryrefslogtreecommitdiffstats
path: root/logic/InstanceFactory.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/InstanceFactory.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/InstanceFactory.h')
-rw-r--r--logic/InstanceFactory.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/logic/InstanceFactory.h b/logic/InstanceFactory.h
index 5ff4c7ec..96e2375e 100644
--- a/logic/InstanceFactory.h
+++ b/logic/InstanceFactory.h
@@ -20,6 +20,7 @@
#include <QList>
#include "BaseVersion.h"
+#include "BaseInstance.h"
class BaseVersion;
class BaseInstance;
@@ -72,7 +73,7 @@ public:
* - InstExists if the given instance directory is already an instance.
* - CantCreateDir if the given instance directory cannot be created.
*/
- InstCreateError createInstance(BaseInstance *&inst, BaseVersionPtr version,
+ InstCreateError createInstance(InstancePtr &inst, BaseVersionPtr version,
const QString &instDir, const InstType type = NormalInst);
/*!
@@ -85,7 +86,7 @@ public:
* - InstExists if the given instance directory is already an instance.
* - CantCreateDir if the given instance directory cannot be created.
*/
- InstCreateError copyInstance(BaseInstance *&newInstance, BaseInstance *&oldInstance,
+ InstCreateError copyInstance(InstancePtr &newInstance, InstancePtr &oldInstance,
const QString &instDir);
/*!
@@ -96,7 +97,7 @@ public:
* \return An InstLoadError error code.
* - NotAnInstance if the given instance directory isn't a valid instance.
*/
- InstLoadError loadInstance(BaseInstance *&inst, const QString &instDir);
+ InstLoadError loadInstance(InstancePtr &inst, const QString &instDir);
private:
InstanceFactory();