Added a function to get an instance's type.

This commit is contained in:
Andrew
2013-03-06 12:32:15 -06:00
parent 36396f7c6a
commit 69040f923b
4 changed files with 27 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ InstanceLoader::InstTypeError StdInstanceType::createInstance(Instance *&inst,
return InstanceLoader::CantCreateDir;
}
StdInstance *stdInst = new StdInstance(instDir);
StdInstance *stdInst = new StdInstance(instDir, this);
// TODO: Verify that the instance is valid.
@@ -48,7 +48,7 @@ InstanceLoader::InstTypeError StdInstanceType::createInstance(Instance *&inst,
InstanceLoader::InstTypeError StdInstanceType::loadInstance(Instance *&inst,
const QString &instDir) const
{
StdInstance *stdInst = new StdInstance(instDir);
StdInstance *stdInst = new StdInstance(instDir, this);
// TODO: Verify that the instance is valid.