NOISSUE make instance traits() const

This commit is contained in:
Petr Mrázek 2017-09-22 00:27:30 +02:00
parent 76c7e0fe1c
commit b5b16d0972
5 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -17,7 +17,7 @@ public:
{
return tr("Unknown instance type");
};
virtual QSet< QString > traits() override
virtual QSet< QString > traits() const override
{
return {};
};

View File

@ -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)

View File

@ -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
{

View File

@ -87,7 +87,7 @@ public:
QString currentVersionId() const;
QString intendedVersionId() const;
QSet<QString> traits() override
QSet<QString> traits() const override
{
return {"legacy-instance", "texturepacks"};
};