Fix minor warnings from clang-tidy.

This commit is contained in:
Stephen Anthony 2024-08-27 22:27:53 -02:30
parent 628c6fb370
commit d7eba0b54c
2 changed files with 11 additions and 5 deletions

View File

@ -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));
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -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