mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
* fix bug introduced in #5267 * remove default args to prevent similar bugs in the future * add newInstance overload with default properties
This commit is contained in:
parent
dde2f8b9ad
commit
5bbc118920
3 changed files with 36 additions and 24 deletions
|
|
@ -252,6 +252,12 @@ CardInfo::~CardInfo()
|
|||
PictureLoader::clearPixmapCache(smartThis);
|
||||
}
|
||||
|
||||
CardInfoPtr CardInfo::newInstance(const QString &_name)
|
||||
{
|
||||
return newInstance(_name, QString(), false, QVariantHash(), QList<CardRelation *>(), QList<CardRelation *>(),
|
||||
CardInfoPerSetMap(), false, false, 0, false);
|
||||
}
|
||||
|
||||
CardInfoPtr CardInfo::newInstance(const QString &_name,
|
||||
const QString &_text,
|
||||
bool _isToken,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue