diff options
Diffstat (limited to 'Userland/Libraries/LibIPC/Decoder.cpp')
-rw-r--r-- | Userland/Libraries/LibIPC/Decoder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibIPC/Decoder.cpp b/Userland/Libraries/LibIPC/Decoder.cpp index 49f7694bfb..6abb1d1d7d 100644 --- a/Userland/Libraries/LibIPC/Decoder.cpp +++ b/Userland/Libraries/LibIPC/Decoder.cpp @@ -63,6 +63,13 @@ ErrorOr<JsonValue> decode(Decoder& decoder) } template<> +ErrorOr<Time> decode(Decoder& decoder) +{ + auto nanoseconds = TRY(decoder.decode<i64>()); + return AK::Time::from_nanoseconds(nanoseconds); +} + +template<> ErrorOr<URL> decode(Decoder& decoder) { auto url = TRY(decoder.decode<DeprecatedString>()); |