mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:57:36 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue