mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-10 04:07:25 -08:00
Removed redundant constructor
Removed constructor that was not needed. Also removes annoying "error" output when compiling.
This commit is contained in:
@@ -586,7 +586,7 @@ bool DeckList::loadFromStream_Plain(QTextStream &in)
|
||||
}
|
||||
|
||||
++okRows;
|
||||
new DecklistCardNode(cardName, number, zone);
|
||||
new DecklistCardNode(cardName, number, 0, zone);
|
||||
}
|
||||
updateDeckHash();
|
||||
return (okRows > 0);
|
||||
@@ -687,7 +687,7 @@ DecklistCardNode *DeckList::addCard(const QString &cardName, const QString &zone
|
||||
if (!zoneNode)
|
||||
zoneNode = new InnerDecklistNode(zoneName, root);
|
||||
|
||||
DecklistCardNode *node = new DecklistCardNode(cardName, 1, zoneNode);
|
||||
DecklistCardNode *node = new DecklistCardNode(cardName, 1, 0, zoneNode);
|
||||
updateDeckHash();
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,6 @@ private:
|
||||
float price;
|
||||
public:
|
||||
DecklistCardNode(const QString &_name = QString(), int _number = 1, float _price = 0, InnerDecklistNode *_parent = 0) : AbstractDecklistCardNode(_parent), name(_name), number(_number), price(_price) { }
|
||||
DecklistCardNode(const QString &_name = QString(), int _number = 1, InnerDecklistNode *_parent = 0) : AbstractDecklistCardNode(_parent), name(_name), number(_number), price(0) { }
|
||||
DecklistCardNode(DecklistCardNode *other, InnerDecklistNode *_parent);
|
||||
int getNumber() const { return number; }
|
||||
void setNumber(int _number) { number = _number; }
|
||||
|
||||
Reference in New Issue
Block a user