mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Split Error::from_string_literal and Error::from_string_view
Error::from_string_literal now takes direct char const*s, while Error::from_string_view does what Error::from_string_literal used to do: taking StringViews. This change will remove the need to insert `sv` after error strings when returning string literal errors once StringView(char const*) is removed. No functional changes.
This commit is contained in:
@@ -289,7 +289,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
dbgln("Create applet: {} with spec '{}'", (int)graph_type, spec);
|
||||
|
||||
if (parts.size() != 2)
|
||||
return Error::from_string_literal("ResourceGraph: Applet spec is not composed of exactly 2 comma-separated parts"sv);
|
||||
return Error::from_string_literal("ResourceGraph: Applet spec is not composed of exactly 2 comma-separated parts");
|
||||
|
||||
auto name = parts[0];
|
||||
auto graph_color = Gfx::Color::from_string(parts[1]);
|
||||
|
||||
Reference in New Issue
Block a user