mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Initialize all deck list member variables in constructor.
Took 10 minutes
This commit is contained in:
parent
ae123587d7
commit
fba2455808
1 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ void SideboardPlan::write(QXmlStreamWriter *xml)
|
||||||
}
|
}
|
||||||
|
|
||||||
DeckList::DeckList()
|
DeckList::DeckList()
|
||||||
|
: QObject(), name(QString()), comments(QString()), bannerCard({}), lastLoadedTimestamp(QString()),
|
||||||
|
tags(QStringList()), cachedDeckHash(QString())
|
||||||
{
|
{
|
||||||
root = new InnerDecklistNode;
|
root = new InnerDecklistNode;
|
||||||
}
|
}
|
||||||
|
|
@ -95,6 +97,8 @@ DeckList::DeckList(const DeckList &other)
|
||||||
}
|
}
|
||||||
|
|
||||||
DeckList::DeckList(const QString &nativeString)
|
DeckList::DeckList(const QString &nativeString)
|
||||||
|
: QObject(), name(QString()), comments(QString()), bannerCard({}), lastLoadedTimestamp(QString()),
|
||||||
|
tags(QStringList()), cachedDeckHash(QString())
|
||||||
{
|
{
|
||||||
root = new InnerDecklistNode;
|
root = new InnerDecklistNode;
|
||||||
loadFromString_Native(nativeString);
|
loadFromString_Native(nativeString);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue