Skip to content

Commit

Permalink
Fix minor warnings from clang-tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sa666666 committed Aug 28, 2024
1 parent 628c6fb commit d7eba0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/debugger/gui/CartELFStateWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace {

return s.str();
}
}
} // namespace

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CartridgeELFStateWidget::CartridgeELFStateWidget(GuiObject* boss,
Expand Down Expand Up @@ -123,7 +123,7 @@ void CartridgeELFStateWidget::initialize()

y += myQueueSize->getHeight() + lineHeight / 2;

myNextTransaction = new StaticTextWidget(_boss, _font, x0, y, describeTransaction(0xffff, 0xffff, ~0ll));
myNextTransaction = new StaticTextWidget(_boss, _font, x0, y, describeTransaction(0xffff, 0xffff, ~0LL));
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down
12 changes: 9 additions & 3 deletions src/debugger/gui/CartELFStateWidget.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class StaticTextWidget;
class CartridgeELFStateWidget : public CartDebugWidget {
public:
CartridgeELFStateWidget(GuiObject* boss, const GUI::Font& lfont,
const GUI::Font& nfont,
int x, int y, int w, int h,
CartridgeELF& cart);
const GUI::Font& nfont,
int x, int y, int w, int h,
CartridgeELF& cart);

~CartridgeELFStateWidget() override = default;

Expand All @@ -51,6 +51,12 @@ class CartridgeELFStateWidget : public CartDebugWidget {
EditTextWidget* myQueueSize{nullptr};
StaticTextWidget* myNextTransaction{nullptr};

private:
CartridgeELFStateWidget() = delete;
CartridgeELFStateWidget(const CartridgeELFStateWidget&) = delete;
CartridgeELFStateWidget(CartridgeELFStateWidget&&) = delete;
CartridgeELFStateWidget& operator=(const CartridgeELFStateWidget&) = delete;
CartridgeELFStateWidget& operator=(CartridgeELFStateWidget&&) = delete;
};

#endif // CART_ELF_INFO_WIDGET_HXX

0 comments on commit d7eba0b

Please sign in to comment.