mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Mark more functions as [[nodiscard]] (#6320)
* Fix local variable double declaration. Took 44 seconds * Mark functions as [[nodiscard]] Took 31 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
27708d5964
commit
73763b5ee6
65 changed files with 258 additions and 257 deletions
|
|
@ -125,7 +125,7 @@ public:
|
|||
* @brief Get the display text for the tab.
|
||||
* @return Tab text with optional modification indicator.
|
||||
*/
|
||||
QString getTabText() const override;
|
||||
[[nodiscard]] QString getTabText() const override;
|
||||
|
||||
/**
|
||||
* @brief Update the currently selected card in the deck and UI.
|
||||
|
|
|
|||
|
|
@ -73,10 +73,10 @@ public:
|
|||
void setTabTitle(int index, const QString &title);
|
||||
|
||||
/// Get the currently active tab widget.
|
||||
QWidget *getCurrentTab() const;
|
||||
[[nodiscard]] QWidget *getCurrentTab() const;
|
||||
|
||||
/// Get the total number of tabs.
|
||||
int getTabCount() const;
|
||||
[[nodiscard]] int getTabCount() const;
|
||||
|
||||
VisualDeckEditorWidget *visualDeckView; ///< Visual deck editor widget.
|
||||
DeckAnalyticsWidget *deckAnalytics; ///< Deck analytics widget.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue