diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-26 21:52:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-27 10:12:04 +0200 |
commit | 9f7ec331803917c9e73041012b5e4b568ab1198a (patch) | |
tree | e275f60fa86a48a9a87a8e9e2bfc35f7bd21b2c7 /Libraries/LibGfx/Bitmap.h | |
parent | 6454969d6bf855aa8a37d6b2b1a5320951196eac (diff) | |
download | serenity-9f7ec331803917c9e73041012b5e4b568ab1198a.zip |
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.)
Diffstat (limited to 'Libraries/LibGfx/Bitmap.h')
-rw-r--r-- | Libraries/LibGfx/Bitmap.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Libraries/LibGfx/Bitmap.h b/Libraries/LibGfx/Bitmap.h index cff596ef6c..8979914d45 100644 --- a/Libraries/LibGfx/Bitmap.h +++ b/Libraries/LibGfx/Bitmap.h @@ -209,13 +209,15 @@ public: [[nodiscard]] bool set_nonvolatile(); private: - enum class Purgeable { No, - Yes }; + enum class Purgeable { + No, + Yes + }; Bitmap(BitmapFormat, const IntSize&, Purgeable); Bitmap(BitmapFormat, const IntSize&, size_t pitch, RGBA32*); Bitmap(BitmapFormat, NonnullRefPtr<SharedBuffer>&&, const IntSize&, const Vector<RGBA32>& palette); - void allocate_palette_from_format(BitmapFormat, const Vector<RGBA32>& source_palette ); + void allocate_palette_from_format(BitmapFormat, const Vector<RGBA32>& source_palette); IntSize m_size; RGBA32* m_data { nullptr }; |