summaryrefslogtreecommitdiff
path: root/Userland/Services/Clipboard
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-02 05:20:28 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-02 08:11:38 +0200
commit889359b6f99a8ff043680ec5594dc369a9a372d9 (patch)
tree17eadf108b44ea2501f789583ba82fb940bda1fa /Userland/Services/Clipboard
parent7cf2839a262a38e00f110bee1102020c658ac476 (diff)
downloadserenity-889359b6f99a8ff043680ec5594dc369a9a372d9.zip
Userland: Make IPC handlers return void if they don't have any outputs
Diffstat (limited to 'Userland/Services/Clipboard')
-rw-r--r--Userland/Services/Clipboard/ClientConnection.cpp6
-rw-r--r--Userland/Services/Clipboard/ClientConnection.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/Userland/Services/Clipboard/ClientConnection.cpp b/Userland/Services/Clipboard/ClientConnection.cpp
index 7f1a909390..3ffe3c0116 100644
--- a/Userland/Services/Clipboard/ClientConnection.cpp
+++ b/Userland/Services/Clipboard/ClientConnection.cpp
@@ -35,15 +35,13 @@ void ClientConnection::die()
s_connections.remove(client_id());
}
-Messages::ClipboardServer::GreetResponse ClientConnection::handle(const Messages::ClipboardServer::Greet&)
+void ClientConnection::handle(const Messages::ClipboardServer::Greet&)
{
- return {};
}
-Messages::ClipboardServer::SetClipboardDataResponse ClientConnection::handle(const Messages::ClipboardServer::SetClipboardData& message)
+void ClientConnection::handle(const Messages::ClipboardServer::SetClipboardData& message)
{
Storage::the().set_data(message.data(), message.mime_type(), message.metadata().entries());
- return {};
}
Messages::ClipboardServer::GetClipboardDataResponse ClientConnection::handle(const Messages::ClipboardServer::GetClipboardData&)
diff --git a/Userland/Services/Clipboard/ClientConnection.h b/Userland/Services/Clipboard/ClientConnection.h
index bba5f5543d..ccce598abe 100644
--- a/Userland/Services/Clipboard/ClientConnection.h
+++ b/Userland/Services/Clipboard/ClientConnection.h
@@ -30,9 +30,9 @@ public:
void notify_about_clipboard_change();
private:
- virtual Messages::ClipboardServer::GreetResponse handle(const Messages::ClipboardServer::Greet&) override;
+ virtual void handle(const Messages::ClipboardServer::Greet&) override;
virtual Messages::ClipboardServer::GetClipboardDataResponse handle(const Messages::ClipboardServer::GetClipboardData&) override;
- virtual Messages::ClipboardServer::SetClipboardDataResponse handle(const Messages::ClipboardServer::SetClipboardData&) override;
+ virtual void handle(const Messages::ClipboardServer::SetClipboardData&) override;
};
}