From d7eba0b54c62b9d48b26721952e8c807226823d6 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 27 Aug 2024 22:27:53 -0230 Subject: [PATCH] Fix minor warnings from clang-tidy. --- src/debugger/gui/CartELFStateWidget.cxx | 4 ++-- src/debugger/gui/CartELFStateWidget.hxx | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/debugger/gui/CartELFStateWidget.cxx b/src/debugger/gui/CartELFStateWidget.cxx index 8d59a115e..6026a1d17 100644 --- a/src/debugger/gui/CartELFStateWidget.cxx +++ b/src/debugger/gui/CartELFStateWidget.cxx @@ -63,7 +63,7 @@ namespace { return s.str(); } -} +} // namespace // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CartridgeELFStateWidget::CartridgeELFStateWidget(GuiObject* boss, @@ -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)); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/debugger/gui/CartELFStateWidget.hxx b/src/debugger/gui/CartELFStateWidget.hxx index 62725c72d..c3eeb6f2e 100644 --- a/src/debugger/gui/CartELFStateWidget.hxx +++ b/src/debugger/gui/CartELFStateWidget.hxx @@ -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; @@ -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