mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 06:43:54 -07:00
Refactor: clean up CardDatabase pt2 (#6042)
* findPrintingWithId * remove a param * cleanup up usage of getCardInfo
This commit is contained in:
parent
95190c321c
commit
70b4843bc4
6 changed files with 39 additions and 39 deletions
|
|
@ -227,8 +227,8 @@ QMap<QString, int> DlgSelectSetForCards::getSetsForCards()
|
|||
continue;
|
||||
|
||||
SetToPrintingsMap setMap = infoPtr->getSets();
|
||||
for (auto it = setMap.begin(); it != setMap.end(); ++it) {
|
||||
setCounts[it.key()]++;
|
||||
for (auto &setName : setMap.keys()) {
|
||||
setCounts[setName]++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue