mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Everywhere: Add sv suffix to strings relying on StringView(char const*)
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
This commit is contained in:
parent
e5f09ea170
commit
3f3f45580a
762 changed files with 8315 additions and 8316 deletions
|
@ -70,7 +70,7 @@ TEST_CASE(0001_simple_triangle)
|
|||
EXPECT_EQ(glGetError(), 0u);
|
||||
|
||||
context->present();
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0001_simple_triangle");
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0001_simple_triangle"sv);
|
||||
}
|
||||
|
||||
TEST_CASE(0002_quad_color_interpolation)
|
||||
|
@ -92,7 +92,7 @@ TEST_CASE(0002_quad_color_interpolation)
|
|||
EXPECT_EQ(glGetError(), 0u);
|
||||
|
||||
context->present();
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0002_quad_color_interpolation");
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0002_quad_color_interpolation"sv);
|
||||
}
|
||||
|
||||
TEST_CASE(0003_rect_w_coordinate_regression)
|
||||
|
@ -115,7 +115,7 @@ TEST_CASE(0003_rect_w_coordinate_regression)
|
|||
EXPECT_EQ(glGetError(), 0u);
|
||||
|
||||
context->present();
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0003_rect_w_coordinate_regression");
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0003_rect_w_coordinate_regression"sv);
|
||||
}
|
||||
|
||||
TEST_CASE(0004_points)
|
||||
|
@ -145,7 +145,7 @@ TEST_CASE(0004_points)
|
|||
EXPECT_EQ(glGetError(), 0u);
|
||||
|
||||
context->present();
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0004_points");
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0004_points"sv);
|
||||
}
|
||||
|
||||
TEST_CASE(0005_lines_antialiased)
|
||||
|
@ -167,5 +167,5 @@ TEST_CASE(0005_lines_antialiased)
|
|||
EXPECT_EQ(glGetError(), 0u);
|
||||
|
||||
context->present();
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0005_lines");
|
||||
expect_bitmap_equals_reference(context->frontbuffer(), "0005_lines"sv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue