Skip to content

Commit

Permalink
maor [[nodiscard]]
Browse files Browse the repository at this point in the history
  • Loading branch information
eteran committed Mar 18, 2024
1 parent e5b6fda commit 1767a31
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/Analyzer/Analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Analyzer final : public QObject, public IAnalyzer, public IPlugin {

public:
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QList<QAction *> cpuContextMenu() override;

private:
void privateInit() override;
Expand Down
2 changes: 1 addition & 1 deletion plugins/Assembler/Assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Assembler : public QObject, public IPlugin {

public:
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QWidget *optionsPage() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion plugins/BinarySearcher/BinarySearcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BinarySearcher : public QObject, public IPlugin {

public:
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
QList<QAction *> stackContextMenu() override;
[[nodiscard]] QList<QAction *> stackContextMenu() override;

public Q_SLOTS:
void showMenu();
Expand Down
2 changes: 1 addition & 1 deletion plugins/Bookmarks/Bookmarks.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Bookmarks : public QObject, public IPlugin {

public:
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QList<QAction *> cpuContextMenu() override;

public:
QVariantMap saveState() const override;
Expand Down
6 changes: 3 additions & 3 deletions plugins/HardwareBreakpoints/HardwareBreakpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class HardwareBreakpoints : public QObject, public IPlugin, public IDebugEventHa
public:
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
edb::EventStatus handleEvent(const std::shared_ptr<IDebugEvent> &event) override;
QList<QAction *> cpuContextMenu() override;
QList<QAction *> stackContextMenu() override;
QList<QAction *> dataContextMenu() override;
[[nodiscard]] QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QList<QAction *> stackContextMenu() override;
[[nodiscard]] QList<QAction *> dataContextMenu() override;

public Q_SLOTS:
void showMenu();
Expand Down
2 changes: 1 addition & 1 deletion plugins/InstructionInspector/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Plugin : public QObject, public IPlugin {
public:
explicit Plugin(QObject *parent = nullptr);
[[nodiscard]] QMenu *menu(QWidget *parent = nullptr) override;
QList<QAction *> cpuContextMenu() override;
[[nodiscard]] QList<QAction *> cpuContextMenu() override;

private:
void showDialog() const;
Expand Down

0 comments on commit 1767a31

Please sign in to comment.