diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Tests/LibGfx | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Tests/LibGfx')
-rw-r--r-- | Tests/LibGfx/BenchmarkGfxPainter.cpp | 12 | ||||
-rw-r--r-- | Tests/LibGfx/TestFontHandling.cpp | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Tests/LibGfx/BenchmarkGfxPainter.cpp b/Tests/LibGfx/BenchmarkGfxPainter.cpp index a9c8707c3d..000de1cfd7 100644 --- a/Tests/LibGfx/BenchmarkGfxPainter.cpp +++ b/Tests/LibGfx/BenchmarkGfxPainter.cpp @@ -22,8 +22,8 @@ static struct FontDatabaseSpoofer { BENCHMARK_CASE(diagonal_lines) { - const int run_count = 50; - const int bitmap_size = 2000; + int const run_count = 50; + int const bitmap_size = 2000; auto bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { bitmap_size, bitmap_size }).release_value_but_fixme_should_propagate_errors(); Gfx::Painter painter(bitmap); @@ -38,8 +38,8 @@ BENCHMARK_CASE(diagonal_lines) BENCHMARK_CASE(fill) { - const int run_count = 1000; - const int bitmap_size = 2000; + int const run_count = 1000; + int const bitmap_size = 2000; auto bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { bitmap_size, bitmap_size }).release_value_but_fixme_should_propagate_errors(); Gfx::Painter painter(bitmap); @@ -51,8 +51,8 @@ BENCHMARK_CASE(fill) BENCHMARK_CASE(fill_with_gradient) { - const int run_count = 50; - const int bitmap_size = 2000; + int const run_count = 50; + int const bitmap_size = 2000; auto bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { bitmap_size, bitmap_size }).release_value_but_fixme_should_propagate_errors(); Gfx::Painter painter(bitmap); diff --git a/Tests/LibGfx/TestFontHandling.cpp b/Tests/LibGfx/TestFontHandling.cpp index 5dad37a112..19b8b927aa 100644 --- a/Tests/LibGfx/TestFontHandling.cpp +++ b/Tests/LibGfx/TestFontHandling.cpp @@ -14,7 +14,7 @@ TEST_CASE(test_fontdatabase_get_by_name) { - const char* name = "Liza 10 400 0"; + char const* name = "Liza 10 400 0"; auto& font_database = Gfx::FontDatabase::the(); EXPECT(!font_database.get_by_name(name)->name().is_null()); } @@ -28,7 +28,7 @@ TEST_CASE(test_fontdatabase_get) TEST_CASE(test_fontdatabase_for_each_font) { auto& font_database = Gfx::FontDatabase::the(); - font_database.for_each_font([&](const Gfx::Font& font) { + font_database.for_each_font([&](Gfx::Font const& font) { EXPECT(!font.name().is_null()); EXPECT(!font.qualified_name().is_null()); EXPECT(!font.family().is_null()); @@ -55,7 +55,7 @@ TEST_CASE(test_set_name) u8 glyph_width = 1; auto font = Gfx::BitmapFont::create(glyph_height, glyph_width, true, 256); - const char* name = "my newly created font"; + char const* name = "my newly created font"; font->set_name(name); EXPECT(!font->name().is_null()); @@ -68,7 +68,7 @@ TEST_CASE(test_set_family) u8 glyph_width = 1; auto font = Gfx::BitmapFont::create(glyph_height, glyph_width, true, 256); - const char* family = "my newly created font family"; + char const* family = "my newly created font family"; font->set_family(family); EXPECT(!font->family().is_null()); |