mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
NOISSUE make instance traits() const
This commit is contained in:
parent
76c7e0fe1c
commit
b5b16d0972
@ -128,7 +128,7 @@ public:
|
||||
virtual QStringList extraArguments() const;
|
||||
|
||||
/// 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.
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
{
|
||||
return tr("Unknown instance type");
|
||||
};
|
||||
virtual QSet< QString > traits() override
|
||||
virtual QSet< QString > traits() const override
|
||||
{
|
||||
return {};
|
||||
};
|
||||
|
@ -154,7 +154,7 @@ std::shared_ptr<MinecraftProfile> MinecraftInstance::getMinecraftProfile() const
|
||||
return m_profile;
|
||||
}
|
||||
|
||||
QSet<QString> MinecraftInstance::traits()
|
||||
QSet<QString> MinecraftInstance::traits() const
|
||||
{
|
||||
auto version = getMinecraftProfile();
|
||||
if (!version)
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
virtual void init() override;
|
||||
|
||||
QString typeName() const override;
|
||||
QSet<QString> traits() override;
|
||||
QSet<QString> traits() const override;
|
||||
|
||||
bool canEdit() const override
|
||||
{
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
QString currentVersionId() const;
|
||||
QString intendedVersionId() const;
|
||||
|
||||
QSet<QString> traits() override
|
||||
QSet<QString> traits() const override
|
||||
{
|
||||
return {"legacy-instance", "texturepacks"};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user