mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
cal: Don't pretend ConfigServer returns a StringView
This commit is contained in:
parent
3d83d70cac
commit
02c4b69f16
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ static ErrorOr<int> weekday_index(StringView weekday_name)
|
||||||
static ErrorOr<int> default_weekday_start()
|
static ErrorOr<int> default_weekday_start()
|
||||||
{
|
{
|
||||||
auto calendar_config = TRY(Core::ConfigFile::open_for_app("Calendar"sv));
|
auto calendar_config = TRY(Core::ConfigFile::open_for_app("Calendar"sv));
|
||||||
String default_first_day_of_week = TRY(String::from_utf8(calendar_config->read_entry("View"sv, "FirstDayOfWeek"sv, "Sunday"sv)));
|
String default_first_day_of_week = TRY(String::from_deprecated_string(calendar_config->read_entry("View"sv, "FirstDayOfWeek"sv, "Sunday"sv)));
|
||||||
return TRY(weekday_index(default_first_day_of_week));
|
return TRY(weekday_index(default_first_day_of_week));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue