mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Everywhere: Remove sv
suffix from format string literals
This prevents the compile-time checks that would catch errors in the format invocation (which would usually lead to a runtime crash).
This commit is contained in:
parent
917537b449
commit
f070264800
Notes:
github-actions[bot]
2025-04-09 00:01:12 +00:00
Author: https://github.com/trflynn89
Commit: f070264800
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4286
28 changed files with 51 additions and 51 deletions
|
@ -81,7 +81,7 @@ ErrorOr<EC::KeyPairType> EC::parse_ec_key(ReadonlyBytes der, bool is_private, Ve
|
|||
// publicKey [1] BIT STRING OPTIONAL
|
||||
// }
|
||||
|
||||
ENTER_TYPED_SCOPE(Sequence, "ECPrivateKey"sv);
|
||||
ENTER_TYPED_SCOPE(Sequence, "ECPrivateKey");
|
||||
|
||||
PUSH_SCOPE("version");
|
||||
READ_OBJECT(Integer, Crypto::UnsignedBigInteger, version);
|
||||
|
@ -98,7 +98,7 @@ ErrorOr<EC::KeyPairType> EC::parse_ec_key(ReadonlyBytes der, bool is_private, Ve
|
|||
auto tag = TRY(decoder.peek());
|
||||
if (static_cast<u8>(tag.kind) == 0) {
|
||||
REWRITE_TAG(Sequence);
|
||||
ENTER_TYPED_SCOPE(Sequence, "parameters"sv);
|
||||
ENTER_TYPED_SCOPE(Sequence, "parameters");
|
||||
parameters = TRY(Crypto::Certificate::parse_ec_parameters(decoder, {}));
|
||||
EXIT_SCOPE();
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ ErrorOr<EC::KeyPairType> EC::parse_ec_key(ReadonlyBytes der, bool is_private, Ve
|
|||
auto tag = TRY(decoder.peek());
|
||||
if (static_cast<u8>(tag.kind) == 1) {
|
||||
REWRITE_TAG(Sequence);
|
||||
ENTER_TYPED_SCOPE(Sequence, "publicKey"sv);
|
||||
ENTER_TYPED_SCOPE(Sequence, "publicKey");
|
||||
READ_OBJECT(BitString, Crypto::ASN1::BitStringView, public_key_bits);
|
||||
|
||||
auto public_key_bytes = TRY(public_key_bits.raw_bytes());
|
||||
|
|
|
@ -43,7 +43,7 @@ ErrorOr<RSA::KeyPairType> RSA::parse_rsa_key(ReadonlyBytes der, bool is_private,
|
|||
// otherPrimeInfos OtherPrimeInfos OPTIONAL
|
||||
// }
|
||||
|
||||
ENTER_TYPED_SCOPE(Sequence, "RSAPrivateKey"sv);
|
||||
ENTER_TYPED_SCOPE(Sequence, "RSAPrivateKey");
|
||||
|
||||
PUSH_SCOPE("version");
|
||||
READ_OBJECT(Integer, Crypto::UnsignedBigInteger, version);
|
||||
|
@ -104,7 +104,7 @@ ErrorOr<RSA::KeyPairType> RSA::parse_rsa_key(ReadonlyBytes der, bool is_private,
|
|||
// publicExponent INTEGER
|
||||
// }
|
||||
|
||||
ENTER_TYPED_SCOPE(Sequence, "RSAPublicKey"sv);
|
||||
ENTER_TYPED_SCOPE(Sequence, "RSAPublicKey");
|
||||
|
||||
PUSH_SCOPE("modulus");
|
||||
READ_OBJECT(Integer, Crypto::UnsignedBigInteger, modulus);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue