1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

Meta: Force semi-colon after MAKE_AK_NONXXXABLE()

Before, we had about these occurrence counts:
COPY: 13 without, 33 with
MOVE: 12 without, 28 with

Clearly, 'with' was the preferred way. However, this introduced double-semicolons
all over the place, and caused some warnings to trigger.

This patch *forces* the usage of a semi-colon when calling the macro,
by removing the semi-colon within the macro. (And thus also gets rid
of the double-semicolon.)
This commit is contained in:
Ben Wiederhake 2020-08-26 21:52:24 +02:00 committed by Andreas Kling
parent 6454969d6b
commit 9f7ec33180
15 changed files with 44 additions and 30 deletions

View file

@ -35,7 +35,8 @@ class SquareButton;
class SquareLabel;
class Square {
AK_MAKE_NONCOPYABLE(Square)
AK_MAKE_NONCOPYABLE(Square);
public:
Square();
~Square();
@ -59,6 +60,7 @@ class Field final : public GUI::Frame {
C_OBJECT(Field)
friend class Square;
friend class SquareLabel;
public:
Field(GUI::Label& flag_label, GUI::Label& time_label, GUI::Button& face_button, Function<void(Gfx::IntSize)> on_size_changed);
virtual ~Field() override;