mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
[Fix-Warnings] Mark const getters as [[nodiscard]] (#6365)
Took 45 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
a1a3b02d3a
commit
9ece4bfd9b
58 changed files with 548 additions and 543 deletions
|
|
@ -30,12 +30,12 @@ public:
|
|||
* @param tagName The name of the tag to display.
|
||||
*/
|
||||
explicit DeckPreviewTagDisplayWidget(QWidget *parent = nullptr, const QString &tagName = "");
|
||||
QSize sizeHint() const override;
|
||||
QString getTagName() const
|
||||
[[nodiscard]] QSize sizeHint() const override;
|
||||
[[nodiscard]] QString getTagName() const
|
||||
{
|
||||
return tagName;
|
||||
}
|
||||
TagState getState() const
|
||||
[[nodiscard]] TagState getState() const
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue