mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
launcher/modManager/cmodlist.cpp: Member functions that don't mutate their objects should be declared "const"
This commit is contained in:
parent
d686d40bb4
commit
9e1629fb40
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user