mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 00:14:40 -07:00
[CardInfo] Refactor: remove properties setters (#7070)
This commit is contained in:
parent
32619f4d55
commit
0d14fb77a0
8 changed files with 22 additions and 61 deletions
|
|
@ -314,7 +314,6 @@ void CockatriceXml4Parser::loadCardsFromXml(QXmlStreamReader &xml)
|
|||
QString setName = xml.readElementText(QXmlStreamReader::IncludeChildElements);
|
||||
auto set = internalAddSet(setName);
|
||||
if (set->getEnabled()) {
|
||||
PrintingInfo printingInfo(set);
|
||||
QHash<QString, QString> printingProps;
|
||||
for (QXmlStreamAttribute attr : attrs) {
|
||||
QString attrName = attr.name().toString();
|
||||
|
|
@ -323,7 +322,7 @@ void CockatriceXml4Parser::loadCardsFromXml(QXmlStreamReader &xml)
|
|||
}
|
||||
printingProps.insert(attrName, attr.value().toString());
|
||||
}
|
||||
printingInfo.setProperties(printingProps);
|
||||
PrintingInfo printingInfo(set, printingProps);
|
||||
|
||||
// This is very much a hack and not the right place to
|
||||
// put this check, as it requires a reload of Cockatrice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue