Skip to content

Commit d7eba0b

Browse files
committed
Fix minor warnings from clang-tidy.
1 parent 628c6fb commit d7eba0b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/debugger/gui/CartELFStateWidget.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace {
6363

6464
return s.str();
6565
}
66-
}
66+
} // namespace
6767

6868
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6969
CartridgeELFStateWidget::CartridgeELFStateWidget(GuiObject* boss,
@@ -123,7 +123,7 @@ void CartridgeELFStateWidget::initialize()
123123

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

126-
myNextTransaction = new StaticTextWidget(_boss, _font, x0, y, describeTransaction(0xffff, 0xffff, ~0ll));
126+
myNextTransaction = new StaticTextWidget(_boss, _font, x0, y, describeTransaction(0xffff, 0xffff, ~0LL));
127127
}
128128

129129
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

src/debugger/gui/CartELFStateWidget.hxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class StaticTextWidget;
2929
class CartridgeELFStateWidget : public CartDebugWidget {
3030
public:
3131
CartridgeELFStateWidget(GuiObject* boss, const GUI::Font& lfont,
32-
const GUI::Font& nfont,
33-
int x, int y, int w, int h,
34-
CartridgeELF& cart);
32+
const GUI::Font& nfont,
33+
int x, int y, int w, int h,
34+
CartridgeELF& cart);
3535

3636
~CartridgeELFStateWidget() override = default;
3737

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

54+
private:
55+
CartridgeELFStateWidget() = delete;
56+
CartridgeELFStateWidget(const CartridgeELFStateWidget&) = delete;
57+
CartridgeELFStateWidget(CartridgeELFStateWidget&&) = delete;
58+
CartridgeELFStateWidget& operator=(const CartridgeELFStateWidget&) = delete;
59+
CartridgeELFStateWidget& operator=(CartridgeELFStateWidget&&) = delete;
5460
};
5561

5662
#endif // CART_ELF_INFO_WIDGET_HXX

0 commit comments

Comments
 (0)