mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
Lint.
This commit is contained in:
parent
65bbf9b4ab
commit
06400f5753
2 changed files with 2 additions and 4 deletions
|
|
@ -13,7 +13,6 @@
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QtConcurrentRun>
|
#include <QtConcurrentRun>
|
||||||
|
|
||||||
|
|
||||||
const QStringList DeckLoader::fileNameFilters = QStringList()
|
const QStringList DeckLoader::fileNameFilters = QStringList()
|
||||||
<< QObject::tr("Common deck formats (*.cod *.dec *.dek *.txt *.mwDeck)")
|
<< QObject::tr("Common deck formats (*.cod *.dec *.dek *.txt *.mwDeck)")
|
||||||
<< QObject::tr("All files (*.*)");
|
<< QObject::tr("All files (*.*)");
|
||||||
|
|
@ -106,7 +105,6 @@ bool DeckLoader::loadFromFileAsync(const QString &fileName, FileFormat fmt, bool
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
switch (fmt) {
|
switch (fmt) {
|
||||||
case PlainTextFormat:
|
case PlainTextFormat:
|
||||||
return loadFromFile_Plain(&file);
|
return loadFromFile_Plain(&file);
|
||||||
|
|
@ -229,7 +227,7 @@ struct FormatDeckListForExport
|
||||||
QString &sideBoardCards;
|
QString &sideBoardCards;
|
||||||
// create main operator for struct, allowing the foreachcard to work.
|
// create main operator for struct, allowing the foreachcard to work.
|
||||||
FormatDeckListForExport(QString &_mainBoardCards, QString &_sideBoardCards)
|
FormatDeckListForExport(QString &_mainBoardCards, QString &_sideBoardCards)
|
||||||
: mainBoardCards(_mainBoardCards), sideBoardCards(_sideBoardCards){};
|
: mainBoardCards(_mainBoardCards), sideBoardCards(_sideBoardCards) {};
|
||||||
|
|
||||||
void operator()(const InnerDecklistNode *node, const DecklistCardNode *card) const
|
void operator()(const InnerDecklistNode *node, const DecklistCardNode *card) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
inline Q_LOGGING_CATEGORY(DeckLoaderLog, "deck_loader")
|
inline Q_LOGGING_CATEGORY(DeckLoaderLog, "deck_loader")
|
||||||
|
|
||||||
class DeckLoader : public DeckList
|
class DeckLoader : public DeckList
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
signals:
|
signals:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue