mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 21:10:01 -08:00
Fix minor compilation warnings
This commit is contained in:
parent
776d809f2f
commit
ecb5c5a494
4 changed files with 5 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ static QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardSet *set)
|
||||||
}
|
}
|
||||||
|
|
||||||
CardSet::CardSet(const QString &_shortName, const QString &_longName, const QString &_setType, const QDate &_releaseDate)
|
CardSet::CardSet(const QString &_shortName, const QString &_longName, const QString &_setType, const QDate &_releaseDate)
|
||||||
: shortName(_shortName), longName(_longName), setType(_setType), releaseDate(_releaseDate)
|
: shortName(_shortName), longName(_longName), releaseDate(_releaseDate), setType(_setType)
|
||||||
{
|
{
|
||||||
updateSortKey();
|
updateSortKey();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ public:
|
||||||
FilterTreeNode *termNode(const CardFilter *f);
|
FilterTreeNode *termNode(const CardFilter *f);
|
||||||
FilterTreeNode *attrTypeNode(CardFilter::Attr attr,
|
FilterTreeNode *attrTypeNode(CardFilter::Attr attr,
|
||||||
CardFilter::Type type);
|
CardFilter::Type type);
|
||||||
const char *textCStr() { return "root"; }
|
const char *textCStr() const { return "root"; }
|
||||||
int index() const { return 0; }
|
int index() const { return 0; }
|
||||||
|
|
||||||
bool acceptsCard(const CardInfo *info) const;
|
bool acceptsCard(const CardInfo *info) const;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#define PRICEUPDATER_H
|
#define PRICEUPDATER_H
|
||||||
|
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
|
#include <QWidget>
|
||||||
#include "decklist.h"
|
#include "decklist.h"
|
||||||
|
|
||||||
class QNetworkAccessManager;
|
class QNetworkAccessManager;
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ private:
|
||||||
QString shortName, longName;
|
QString shortName, longName;
|
||||||
bool import;
|
bool import;
|
||||||
QVariant cards;
|
QVariant cards;
|
||||||
QDate releaseDate;
|
|
||||||
QString setType;
|
QString setType;
|
||||||
|
QDate releaseDate;
|
||||||
public:
|
public:
|
||||||
const QString &getShortName() const { return shortName; }
|
const QString &getShortName() const { return shortName; }
|
||||||
const QString &getLongName() const { return longName; }
|
const QString &getLongName() const { return longName; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue