summaryrefslogtreecommitdiffstats
path: root/logic/tools/BaseExternalTool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/tools/BaseExternalTool.cpp')
-rw-r--r--logic/tools/BaseExternalTool.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/logic/tools/BaseExternalTool.cpp b/logic/tools/BaseExternalTool.cpp
index 69cddd00..23f154e2 100644
--- a/logic/tools/BaseExternalTool.cpp
+++ b/logic/tools/BaseExternalTool.cpp
@@ -11,7 +11,7 @@
#include "logic/BaseInstance.h"
#include "MultiMC.h"
-BaseExternalTool::BaseExternalTool(BaseInstance *instance, QObject *parent)
+BaseExternalTool::BaseExternalTool(InstancePtr instance, QObject *parent)
: QObject(parent), m_instance(instance)
{
}
@@ -55,7 +55,7 @@ QString BaseExternalTool::getSave() const
}
-BaseDetachedTool::BaseDetachedTool(BaseInstance *instance, QObject *parent)
+BaseDetachedTool::BaseDetachedTool(InstancePtr instance, QObject *parent)
: BaseExternalTool(instance, parent)
{
@@ -71,7 +71,8 @@ BaseExternalToolFactory::~BaseExternalToolFactory()
{
}
-BaseDetachedTool *BaseDetachedToolFactory::createDetachedTool(BaseInstance *instance, QObject *parent)
+BaseDetachedTool *BaseDetachedToolFactory::createDetachedTool(InstancePtr instance,
+ QObject *parent)
{
return qobject_cast<BaseDetachedTool *>(createTool(instance, parent));
}