mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 09:34:47 -07:00
[Fix-Warnings] Remove more redundant empty declarations. (extra semicolons) (#6374)
This commit is contained in:
parent
858361e6d3
commit
8abd04dab1
21 changed files with 37 additions and 37 deletions
|
|
@ -22,7 +22,7 @@ public:
|
|||
inline QString getCardUpdaterBinaryName()
|
||||
{
|
||||
return "oracle";
|
||||
};
|
||||
}
|
||||
QByteArray getHash(const QString fileName);
|
||||
QByteArray getHash(QByteArray data);
|
||||
static bool deleteSpoilerFile();
|
||||
|
|
|
|||
|
|
@ -99,15 +99,15 @@ public:
|
|||
void setSequence(const QList &_sequence)
|
||||
{
|
||||
QList::operator=(_sequence);
|
||||
};
|
||||
}
|
||||
[[nodiscard]] QString getName() const
|
||||
{
|
||||
return QApplication::translate("shortcutsTab", name.toUtf8().data());
|
||||
};
|
||||
}
|
||||
[[nodiscard]] QString getGroupName() const
|
||||
{
|
||||
return ShortcutGroup::getGroupName(group);
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
QString name;
|
||||
|
|
@ -129,7 +129,7 @@ public:
|
|||
[[nodiscard]] QList<QString> getAllShortcutKeys() const
|
||||
{
|
||||
return shortCuts.keys();
|
||||
};
|
||||
}
|
||||
|
||||
void setShortcuts(const QString &name, const QList<QKeySequence> &Sequence);
|
||||
void setShortcuts(const QString &name, const QKeySequence &Sequence);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public:
|
|||
[[nodiscard]] bool getIncludeRebalancedCards() const override
|
||||
{
|
||||
return SettingsCache::instance().getIncludeRebalancedCards();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_SETTINGS_CARD_PREFERENCE_PROVIDER_H
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ public:
|
|||
[[nodiscard]] PlayerActions *getPlayerActions() const
|
||||
{
|
||||
return playerActions;
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] PlayerEventHandler *getPlayerEventHandler() const
|
||||
{
|
||||
|
|
@ -123,7 +123,7 @@ public:
|
|||
[[nodiscard]] PlayerInfo *getPlayerInfo() const
|
||||
{
|
||||
return playerInfo;
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] PlayerMenu *getPlayerMenu() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public:
|
|||
void rawInsertCard(CardItem *card, int index)
|
||||
{
|
||||
cards.insert(index, card);
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] const CardList &getCards() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,15 +23,15 @@ public:
|
|||
[[nodiscard]] bool isColorActive() const
|
||||
{
|
||||
return isActive;
|
||||
};
|
||||
}
|
||||
[[nodiscard]] QString getSymbol() const
|
||||
{
|
||||
return symbol;
|
||||
};
|
||||
}
|
||||
[[nodiscard]] QChar getSymbolChar() const
|
||||
{
|
||||
return symbol[0];
|
||||
};
|
||||
}
|
||||
|
||||
void loadManaIcon();
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public:
|
|||
QTreeView *getDatabaseView()
|
||||
{
|
||||
return databaseView;
|
||||
};
|
||||
}
|
||||
|
||||
public slots:
|
||||
ExactCard currentCard() const;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
[[nodiscard]] DeckListModel *getDeckModel() const
|
||||
{
|
||||
return deckModel;
|
||||
};
|
||||
}
|
||||
|
||||
public slots:
|
||||
void retranslateUi();
|
||||
|
|
|
|||
|
|
@ -167,4 +167,4 @@ const ServerInfo_User *UserListManager::getOnlineUser(const QString &userName) c
|
|||
}
|
||||
|
||||
return nullptr;
|
||||
};
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ public:
|
|||
[[nodiscard]] QString getBannerText() const
|
||||
{
|
||||
return header->getText();
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
QVBoxLayout *layout;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
{
|
||||
state = newState;
|
||||
update();
|
||||
};
|
||||
}
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public:
|
|||
[[nodiscard]] FlowWidget *getFlowWidget() const
|
||||
{
|
||||
return flowWidget;
|
||||
};
|
||||
}
|
||||
|
||||
public slots:
|
||||
void updateVisibility(bool recursive = true);
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ private:
|
|||
inline QString getCardUpdaterBinaryName()
|
||||
{
|
||||
return "oracle";
|
||||
};
|
||||
}
|
||||
void createCardUpdateProcess(bool background = false);
|
||||
void exitCardDatabaseUpdate();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue