mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 16:11:54 +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
|
@ -128,7 +128,7 @@ WebIDL::ExceptionOr<void> Storage::set_item(String const& key, String const& val
|
|||
// 4. If value cannot be stored, then throw a "QuotaExceededError" DOMException exception.
|
||||
new_size += value.bytes().size() - old_value.value_or(String {}).bytes().size();
|
||||
if (m_storage_bottle->quota.has_value() && new_size > *m_storage_bottle->quota)
|
||||
return WebIDL::QuotaExceededError::create(realm, MUST(String::formatted("Unable to store more than {} bytes in storage"sv, *m_storage_bottle->quota)));
|
||||
return WebIDL::QuotaExceededError::create(realm, MUST(String::formatted("Unable to store more than {} bytes in storage", *m_storage_bottle->quota)));
|
||||
|
||||
// 5. Set this's map[key] to value.
|
||||
map().set(key, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue