diff options
author | Itamar <itamar8910@gmail.com> | 2022-02-25 13:13:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-25 22:35:12 +0100 |
commit | 2f61d32f9942d14f04eb30347ef319882f3603f1 (patch) | |
tree | 10c8456f3db34637ece0fbf9f264ac0b3d96517d /Userland/Libraries | |
parent | 2bc8e32af05a1a891a2cdc39fe6e48b694ec546e (diff) | |
download | serenity-2f61d32f9942d14f04eb30347ef319882f3603f1.zip |
LibGUI: Rename ClipboardServerConnection=>ConnectionToClipboardServer
This was done with CLion's automatic rename feature.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/Clipboard.cpp | 14 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Clipboard.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGUI/Clipboard.cpp b/Userland/Libraries/LibGUI/Clipboard.cpp index a548451055..c7dbb2075a 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<ClipboardClientEndpoint, ClipboardServerEndpoint> , public ClipboardClientEndpoint { - IPC_CLIENT_CONNECTION(ClipboardServerConnection, "/tmp/portal/clipboard") + IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard") private: - ClipboardServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket) + ConnectionToClipboardServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket) : IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>(*this, move(socket)) { } @@ -30,16 +30,16 @@ private: } }; -static RefPtr<ClipboardServerConnection> s_connection; +static RefPtr<ConnectionToClipboardServer> s_connection; -static ClipboardServerConnection& connection() +static ConnectionToClipboardServer& connection() { return *s_connection; } void Clipboard::initialize(Badge<Application>) { - 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<ClipboardServerConnection>, String const& mime_type) +void Clipboard::clipboard_data_changed(Badge<ConnectionToClipboardServer>, 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 873bb778b2..4b37c0df36 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<ClipboardServerConnection>, String const& mime_type); + void clipboard_data_changed(Badge<ConnectionToClipboardServer>, String const& mime_type); void register_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.set(&client); } void unregister_client(Badge<ClipboardClient>, ClipboardClient& client) { m_clients.remove(&client); } |