mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -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
|
|
@ -39,15 +39,15 @@ private:
|
|||
|
||||
public:
|
||||
explicit Tab(TabSupervisor *_tabSupervisor);
|
||||
const QList<QMenu *> &getTabMenus() const
|
||||
[[nodiscard]] const QList<QMenu *> &getTabMenus() const
|
||||
{
|
||||
return tabMenus;
|
||||
}
|
||||
TabSupervisor *getTabSupervisor() const
|
||||
[[nodiscard]] TabSupervisor *getTabSupervisor() const
|
||||
{
|
||||
return tabSupervisor;
|
||||
}
|
||||
bool getContentsChanged() const
|
||||
[[nodiscard]] bool getContentsChanged() const
|
||||
{
|
||||
return contentsChanged;
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ public:
|
|||
{
|
||||
contentsChanged = _contentsChanged;
|
||||
}
|
||||
virtual QString getTabText() const = 0;
|
||||
[[nodiscard]] virtual QString getTabText() const = 0;
|
||||
virtual void retranslateUi() = 0;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue