1
Fork 0
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:
Linus Groh 2023-01-26 15:03:27 +00:00
parent 4a7d6670d8
commit 96855d53c4

View file

@ -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;
};