diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp index a5484510552..c7dbb2075af 100644 --- a/Userland/Libraries/LibGUI/Clipboard.cpp +++ b/Userland/Libraries/LibGUI/Clipboard.cpp @@ -13,13 +13,13 @@ namespace GUI { -class ClipboardServerConnection final +class ConnectionToClipboardServer final : public IPC::ConnectionToServer , public ClipboardClientEndpoint { - IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") + IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard") private: - ClipboardServerConnection(NonnullOwnPtr socket) + ConnectionToClipboardServer(NonnullOwnPtr socket) : IPC::ConnectionToServer(*this, move(socket)) { } @@ -30,16 +30,16 @@ private: } }; -static RefPtr s_connection; +static RefPtr s_connection; -static ClipboardServerConnection& connection() +static ConnectionToClipboardServer& connection() { return *s_connection; } void Clipboard::initialize(Badge) { - s_connection = ClipboardServerConnection::try_create().release_value_but_fixme_should_propagate_errors(); + s_connection = ConnectionToClipboardServer::try_create().release_value_but_fixme_should_propagate_errors(); } Clipboard& Clipboard::the() @@ -153,7 +153,7 @@ void Clipboard::clear() connection().async_set_clipboard_data({}, {}, {}); } -void Clipboard::clipboard_data_changed(Badge, String const& mime_type) +void Clipboard::clipboard_data_changed(Badge, String const& mime_type) { if (on_change) on_change(mime_type); diff --git a/Userland/Libraries/LibGUI/Clipboard.h b/Userland/Libraries/LibGUI/Clipboard.h index 873bb778b2c..4b37c0df36b 100644 --- a/Userland/Libraries/LibGUI/Clipboard.h +++ b/Userland/Libraries/LibGUI/Clipboard.h @@ -16,7 +16,7 @@ namespace GUI { -class ClipboardServerConnection; +class ConnectionToClipboardServer; class Clipboard { public: @@ -47,7 +47,7 @@ public: void set_bitmap(Gfx::Bitmap const&); void clear(); - void clipboard_data_changed(Badge, String const& mime_type); + void clipboard_data_changed(Badge, String const& mime_type); void register_client(Badge, ClipboardClient& client) { m_clients.set(&client); } void unregister_client(Badge, ClipboardClient& client) { m_clients.remove(&client); }