summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibIPC/Decoder.h
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-07-11 17:57:32 +0000
committerAndreas Kling <kling@serenityos.org>2022-07-12 23:11:35 +0200
commite5f09ea1703bacfbb79a4ad3c587a7d5d3d7bb13 (patch)
tree6d90ea8a795e90f19f907a225c1ea166de960930 /Userland/Libraries/LibIPC/Decoder.h
parentc70f45ff4498fcb7ce0671e9107ecff8009d7eb2 (diff)
downloadserenity-e5f09ea1703bacfbb79a4ad3c587a7d5d3d7bb13.zip
Everywhere: Split Error::from_string_literal and Error::from_string_view
Error::from_string_literal now takes direct char const*s, while Error::from_string_view does what Error::from_string_literal used to do: taking StringViews. This change will remove the need to insert `sv` after error strings when returning string literal errors once StringView(char const*) is removed. No functional changes.
Diffstat (limited to 'Userland/Libraries/LibIPC/Decoder.h')
-rw-r--r--Userland/Libraries/LibIPC/Decoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibIPC/Decoder.h b/Userland/Libraries/LibIPC/Decoder.h
index fc5ea6e117..b938b21063 100644
--- a/Userland/Libraries/LibIPC/Decoder.h
+++ b/Userland/Libraries/LibIPC/Decoder.h
@@ -58,7 +58,7 @@ public:
u32 size;
TRY(decode(size));
if (size > NumericLimits<i32>::max())
- return Error::from_string_literal("IPC: Invalid HashMap size"sv);
+ return Error::from_string_literal("IPC: Invalid HashMap size");
for (size_t i = 0; i < size; ++i) {
K key;
@@ -76,7 +76,7 @@ public:
u32 size;
TRY(decode(size));
if (size > NumericLimits<i32>::max())
- return Error::from_string_literal("IPC: Invalid HashMap size"sv);
+ return Error::from_string_literal("IPC: Invalid HashMap size");
for (size_t i = 0; i < size; ++i) {
K key;
@@ -109,7 +109,7 @@ public:
u64 size;
TRY(decode(size));
if (size > NumericLimits<i32>::max())
- return Error::from_string_literal("IPC: Invalid Vector size"sv);
+ return Error::from_string_literal("IPC: Invalid Vector size");
VERIFY(vector.is_empty());
TRY(vector.try_ensure_capacity(size));
for (size_t i = 0; i < size; ++i) {