mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
remove hashGameType from header
This commit is contained in:
parent
4dba6a91bd
commit
24e6fcc659
2 changed files with 2 additions and 4 deletions
|
|
@ -8,11 +8,11 @@ GameFiltersSettings::GameFiltersSettings(const QString &settingPath, QObject *pa
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* The game type might contain special characters, so to use it in
|
* The game type might contain special characters, so to use it in
|
||||||
* QSettings we just hash it.
|
* QSettings we just hash it.
|
||||||
*/
|
*/
|
||||||
QString GameFiltersSettings::hashGameType(const QString &gameType)
|
static QString hashGameType(const QString &gameType)
|
||||||
{
|
{
|
||||||
return QCryptographicHash::hash(gameType.toUtf8(), QCryptographicHash::Md5).toHex();
|
return QCryptographicHash::hash(gameType.toUtf8(), QCryptographicHash::Md5).toHex();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,6 @@ public:
|
||||||
private:
|
private:
|
||||||
explicit GameFiltersSettings(const QString &settingPath, QObject *parent = nullptr);
|
explicit GameFiltersSettings(const QString &settingPath, QObject *parent = nullptr);
|
||||||
GameFiltersSettings(const GameFiltersSettings & /*other*/);
|
GameFiltersSettings(const GameFiltersSettings & /*other*/);
|
||||||
|
|
||||||
[[nodiscard]] static QString hashGameType(const QString &gameType);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GAMEFILTERSSETTINGS_H
|
#endif // GAMEFILTERSSETTINGS_H
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue