From 086969277e74d8ba065bf8145d3aeb0dec0bfee5 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 1 Apr 2022 20:58:27 +0300 Subject: Everywhere: Run clang-format --- Tests/LibGfx/BenchmarkGfxPainter.cpp | 12 ++++++------ Tests/LibGfx/TestFontHandling.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'Tests/LibGfx') 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()); -- cgit v1.2.3