NOISSUE more compiler warning removal
This commit is contained in:
parent
d432d8ecfc
commit
c329bc73c0
@ -12,13 +12,10 @@ QString LegacyFTBInstance::id() const
|
|||||||
return "FTB/" + BaseInstance::id();
|
return "FTB/" + BaseInstance::id();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LegacyFTBInstance::copy(const QDir &newDir)
|
void LegacyFTBInstance::copy(SettingsObjectPtr newSettings, const QDir& newDir)
|
||||||
{
|
{
|
||||||
// set the target instance to be plain Legacy
|
// set the target instance to be plain Legacy
|
||||||
INISettingsObject settings_obj(newDir.absoluteFilePath("instance.cfg"));
|
newSettings->set("InstanceType", "Legacy");
|
||||||
settings_obj.registerSetting("InstanceType", "Legacy");
|
|
||||||
QString inst_type = settings_obj.get("InstanceType").toString();
|
|
||||||
settings_obj.set("InstanceType", "Legacy");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString LegacyFTBInstance::typeName() const
|
QString LegacyFTBInstance::typeName() const
|
||||||
|
@ -8,7 +8,7 @@ class LegacyFTBInstance : public LegacyInstance
|
|||||||
public:
|
public:
|
||||||
explicit LegacyFTBInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
|
explicit LegacyFTBInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
|
||||||
QString id() const override;
|
QString id() const override;
|
||||||
void copy(const QDir &newDir) override;
|
void copy(SettingsObjectPtr newSettings, const QDir &newDir) override;
|
||||||
QString typeName() const override;
|
QString typeName() const override;
|
||||||
bool canExport() const override
|
bool canExport() const override
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,6 @@ SET(MULTIMC_SOURCES
|
|||||||
|
|
||||||
# page provider for instances
|
# page provider for instances
|
||||||
InstancePageProvider.h
|
InstancePageProvider.h
|
||||||
InstancePageProvider.cpp
|
|
||||||
|
|
||||||
# Common java checking UI
|
# Common java checking UI
|
||||||
JavaCommon.h
|
JavaCommon.h
|
||||||
|
Loading…
Reference in New Issue
Block a user