NOISSUE make instance traits() const
This commit is contained in:
parent
76c7e0fe1c
commit
b5b16d0972
@ -128,7 +128,7 @@ public:
|
|||||||
virtual QStringList extraArguments() const;
|
virtual QStringList extraArguments() const;
|
||||||
|
|
||||||
/// Traits. Normally inside the version, depends on instance implementation.
|
/// Traits. Normally inside the version, depends on instance implementation.
|
||||||
virtual QSet <QString> traits() = 0;
|
virtual QSet <QString> traits() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the time that the instance was last launched.
|
* Gets the time that the instance was last launched.
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
{
|
{
|
||||||
return tr("Unknown instance type");
|
return tr("Unknown instance type");
|
||||||
};
|
};
|
||||||
virtual QSet< QString > traits() override
|
virtual QSet< QString > traits() const override
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
};
|
};
|
||||||
|
@ -154,7 +154,7 @@ std::shared_ptr<MinecraftProfile> MinecraftInstance::getMinecraftProfile() const
|
|||||||
return m_profile;
|
return m_profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSet<QString> MinecraftInstance::traits()
|
QSet<QString> MinecraftInstance::traits() const
|
||||||
{
|
{
|
||||||
auto version = getMinecraftProfile();
|
auto version = getMinecraftProfile();
|
||||||
if (!version)
|
if (!version)
|
||||||
|
@ -20,7 +20,7 @@ public:
|
|||||||
virtual void init() override;
|
virtual void init() override;
|
||||||
|
|
||||||
QString typeName() const override;
|
QString typeName() const override;
|
||||||
QSet<QString> traits() override;
|
QSet<QString> traits() const override;
|
||||||
|
|
||||||
bool canEdit() const override
|
bool canEdit() const override
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,7 @@ public:
|
|||||||
QString currentVersionId() const;
|
QString currentVersionId() const;
|
||||||
QString intendedVersionId() const;
|
QString intendedVersionId() const;
|
||||||
|
|
||||||
QSet<QString> traits() override
|
QSet<QString> traits() const override
|
||||||
{
|
{
|
||||||
return {"legacy-instance", "texturepacks"};
|
return {"legacy-instance", "texturepacks"};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user