mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibCore: Change Core::DateTime::parse to accept a StringView
No reason to force an allocation here, as we do not require a NUL- terminated string.
This commit is contained in:
parent
6655de189f
commit
fd0075083a
2 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ DeprecatedString DateTime::to_deprecated_string(StringView format) const
|
|||
return MUST(to_string(format)).to_deprecated_string();
|
||||
}
|
||||
|
||||
Optional<DateTime> DateTime::parse(StringView format, DeprecatedString const& string)
|
||||
Optional<DateTime> DateTime::parse(StringView format, StringView string)
|
||||
{
|
||||
unsigned format_pos = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue