[CardInfo] clean up signatures (#6462)

This commit is contained in:
RickyRister 2025-12-31 04:13:32 -08:00 committed by GitHub
parent d722b2569c
commit db3bdb586b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 18 deletions

View file

@ -85,7 +85,7 @@ bool CardInfo::isLegalInFormat(const QString &format) const
return formatLegality == "legal" || formatLegality == "restricted";
}
void CardInfo::addToSet(const CardSetPtr &_set, const PrintingInfo _info)
void CardInfo::addToSet(const CardSetPtr &_set, const PrintingInfo &_info)
{
if (!_set->contains(smartThis)) {
_set->append(smartThis);
@ -166,7 +166,7 @@ QString CardInfo::simplifyName(const QString &name)
return simpleName;
}
const QChar CardInfo::getColorChar() const
QChar CardInfo::getColorChar() const
{
QString colors = getColors();
switch (colors.size()) {
@ -188,7 +188,7 @@ void CardInfo::resetReverseRelatedCards2Me()
}
// Back-compatibility methods. Remove ASAP
const QString CardInfo::getCardType() const
QString CardInfo::getCardType() const
{
return getProperty(Mtg::CardType);
}
@ -196,11 +196,11 @@ void CardInfo::setCardType(const QString &value)
{
setProperty(Mtg::CardType, value);
}
const QString CardInfo::getCmc() const
QString CardInfo::getCmc() const
{
return getProperty(Mtg::ConvertedManaCost);
}
const QString CardInfo::getColors() const
QString CardInfo::getColors() const
{
return getProperty(Mtg::Colors);
}
@ -208,19 +208,19 @@ void CardInfo::setColors(const QString &value)
{
setProperty(Mtg::Colors, value);
}
const QString CardInfo::getLoyalty() const
QString CardInfo::getLoyalty() const
{
return getProperty(Mtg::Loyalty);
}
const QString CardInfo::getMainCardType() const
QString CardInfo::getMainCardType() const
{
return getProperty(Mtg::MainCardType);
}
const QString CardInfo::getManaCost() const
QString CardInfo::getManaCost() const
{
return getProperty(Mtg::ManaCost);
}
const QString CardInfo::getPowTough() const
QString CardInfo::getPowTough() const
{
return getProperty(Mtg::PowTough);
}