mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
make getSetPriority static
This commit is contained in:
parent
0ebedb3bd8
commit
ac6b3b5909
2 changed files with 1 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ OracleImporter::OracleImporter(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CardSet::Priority OracleImporter::getSetPriority(QString &setType, QString &shortName)
|
static CardSet::Priority getSetPriority(const QString &setType, const QString &shortName)
|
||||||
{
|
{
|
||||||
if (!setTypePriorities.contains(setType.toLower())) {
|
if (!setTypePriorities.contains(setType.toLower())) {
|
||||||
qDebug() << "warning: Set type" << setType << "unrecognized for prioritization";
|
qDebug() << "warning: Set type" << setType << "unrecognized for prioritization";
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,6 @@ signals:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit OracleImporter(QObject *parent = nullptr);
|
explicit OracleImporter(QObject *parent = nullptr);
|
||||||
CardSet::Priority getSetPriority(QString &setType, QString &shortName);
|
|
||||||
bool readSetsFromByteArray(const QByteArray &data);
|
bool readSetsFromByteArray(const QByteArray &data);
|
||||||
int startImport();
|
int startImport();
|
||||||
bool saveToFile(const QString &fileName, const QString &sourceUrl, const QString &sourceVersion);
|
bool saveToFile(const QString &fileName, const QString &sourceUrl, const QString &sourceVersion);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue