1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00

launcher/modManager/cmodlist.cpp: Member functions that don't mutate their objects should be declared "const"

This commit is contained in:
Alexander Wilms 2023-10-28 16:44:58 +00:00
parent d686d40bb4
commit 9e1629fb40
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ QVariant CModEntry::getValueImpl(QString value, bool localized) const
return QVariant();
}
QVariantMap CModList::copyField(QVariantMap data, QString from, QString to)
QVariantMap CModList::copyField(QVariantMap data, QString from, QString to) const
{
QVariantMap renamed;

View File

@ -85,7 +85,7 @@ class CModList
QVariantMap localModList;
QVariantMap modSettings;
QVariantMap copyField(QVariantMap data, QString from, QString to);
QVariantMap copyField(QVariantMap data, QString from, QString to) const;
public:
virtual void resetRepositories();