From 3b2c3e8c2f482bdf075cb7a8b7bd1eb51ef9a8f9 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Fri, 24 Jan 2025 23:14:36 -0800 Subject: [PATCH] add missing override and explicit specifiers in src/deck --- cockatrice/src/deck/custom_line_edit.h | 2 +- cockatrice/src/deck/deck_loader.h | 4 ++-- cockatrice/src/deck/deck_stats_interface.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/deck/custom_line_edit.h b/cockatrice/src/deck/custom_line_edit.h index e6d003906..075ec012e 100644 --- a/cockatrice/src/deck/custom_line_edit.h +++ b/cockatrice/src/deck/custom_line_edit.h @@ -35,7 +35,7 @@ protected: void keyPressEvent(QKeyEvent *event) override; public: - SearchLineEdit() : LineEditUnfocusable(), treeView(nullptr) + SearchLineEdit() : treeView(nullptr) { } void setTreeView(QTreeView *_treeView) diff --git a/cockatrice/src/deck/deck_loader.h b/cockatrice/src/deck/deck_loader.h index d9863ac3e..ceb103009 100644 --- a/cockatrice/src/deck/deck_loader.h +++ b/cockatrice/src/deck/deck_loader.h @@ -29,8 +29,8 @@ private: public: DeckLoader(); - DeckLoader(const QString &nativeString); - DeckLoader(const DeckList &other); + explicit DeckLoader(const QString &nativeString); + explicit DeckLoader(const DeckList &other); DeckLoader(const DeckLoader &other); const QString &getLastFileName() const { diff --git a/cockatrice/src/deck/deck_stats_interface.h b/cockatrice/src/deck/deck_stats_interface.h index a6d77d1dc..c3611df81 100644 --- a/cockatrice/src/deck/deck_stats_interface.h +++ b/cockatrice/src/deck/deck_stats_interface.h @@ -31,7 +31,7 @@ private slots: void getAnalyzeRequestData(DeckList *deck, QByteArray *data); public: - DeckStatsInterface(CardDatabase &_cardDatabase, QObject *parent = nullptr); + explicit DeckStatsInterface(CardDatabase &_cardDatabase, QObject *parent = nullptr); void analyzeDeck(DeckList *deck); };