1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:37:34 +00:00

Userland: Remove a few gratuitous IPC namespace qualifiers

Spotted this while trying to search for specific IPC encode/decode
implementations. Now they are all the same, so searching is easier.
This commit is contained in:
Valtteri Koskivuori 2022-04-03 15:44:25 +03:00 committed by Linus Groh
parent 85ed64b99c
commit f2c02077ba
5 changed files with 10 additions and 10 deletions

View file

@ -54,7 +54,7 @@ private:
namespace IPC {
bool encode(IPC::Encoder&, Core::DateTime const&);
ErrorOr<void> decode(IPC::Decoder&, Core::DateTime&);
bool encode(Encoder&, Core::DateTime const&);
ErrorOr<void> decode(Decoder&, Core::DateTime&);
}

View file

@ -336,13 +336,13 @@ Vector<Color> Color::tints(u32 steps, float max) const
}
bool IPC::encode(IPC::Encoder& encoder, Color const& color)
bool IPC::encode(Encoder& encoder, Color const& color)
{
encoder << color.value();
return true;
}
ErrorOr<void> IPC::decode(IPC::Decoder& decoder, Color& color)
ErrorOr<void> IPC::decode(Decoder& decoder, Color& color)
{
u32 rgba;
TRY(decoder.decode(rgba));

View file

@ -333,7 +333,7 @@ Optional<Core::DateTime> parse_date_time(StringView date_string)
}
bool IPC::encode(IPC::Encoder& encoder, Web::Cookie::ParsedCookie const& cookie)
bool IPC::encode(Encoder& encoder, Web::Cookie::ParsedCookie const& cookie)
{
encoder << cookie.name;
encoder << cookie.value;
@ -347,7 +347,7 @@ bool IPC::encode(IPC::Encoder& encoder, Web::Cookie::ParsedCookie const& cookie)
return true;
}
ErrorOr<void> IPC::decode(IPC::Decoder& decoder, Web::Cookie::ParsedCookie& cookie)
ErrorOr<void> IPC::decode(Decoder& decoder, Web::Cookie::ParsedCookie& cookie)
{
TRY(decoder.decode(cookie.name));
TRY(decoder.decode(cookie.value));

View file

@ -30,7 +30,7 @@ Optional<ParsedCookie> parse_cookie(String const& cookie_string);
namespace IPC {
bool encode(IPC::Encoder&, Web::Cookie::ParsedCookie const&);
ErrorOr<void> decode(IPC::Decoder&, Web::Cookie::ParsedCookie&);
bool encode(Encoder&, Web::Cookie::ParsedCookie const&);
ErrorOr<void> decode(Decoder&, Web::Cookie::ParsedCookie&);
}