mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +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:
parent
4a7d6670d8
commit
96855d53c4
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue