mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
LibJS: Use StringView for SecondsStringPrecision::unit
This is exclusively used with sv literals, and can be a StringView like precision above it. This removes the last use of DeprecatedString in Temporal's AbstractOperations.h :^)
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <LibJS/Forward.h>
|
||||
@@ -113,7 +112,7 @@ struct ISODateTime {
|
||||
|
||||
struct SecondsStringPrecision {
|
||||
Variant<StringView, u8> precision;
|
||||
DeprecatedString unit;
|
||||
StringView unit;
|
||||
u32 increment;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user