mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
Userland: Mark subclasses of IPC::{Client,Server}Connection final
This commit is contained in:
parent
c1c252ddb2
commit
a345a1f4a1
Notes:
sideshowbarker
2024-07-18 17:30:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a345a1f4a15
10 changed files with 14 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
#define LANGUAGE_CLIENT(language_name_, socket_name) \
|
||||
namespace language_name_ { \
|
||||
class ServerConnection : public HackStudio::ServerConnection { \
|
||||
class ServerConnection final : public HackStudio::ServerConnection { \
|
||||
C_OBJECT(ServerConnection) \
|
||||
public: \
|
||||
static const char* language_name() { return #language_name_; } \
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
|
||||
namespace LanguageServers {
|
||||
|
||||
class ClientConnection
|
||||
: public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
|
||||
class ClientConnection : public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
|
||||
public:
|
||||
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
|
||||
~ClientConnection() override;
|
||||
|
|
|
@ -14,7 +14,8 @@ namespace Audio {
|
|||
|
||||
class Buffer;
|
||||
|
||||
class ClientConnection : public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
||||
class ClientConnection final
|
||||
: public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
||||
, public AudioClientEndpoint {
|
||||
C_OBJECT(ClientConnection)
|
||||
public:
|
||||
|
|
|
@ -34,7 +34,8 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
|
|||
return details;
|
||||
}
|
||||
|
||||
class LaunchServerConnection : public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>
|
||||
class LaunchServerConnection final
|
||||
: public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>
|
||||
, public LaunchClientEndpoint {
|
||||
C_OBJECT(LaunchServerConnection)
|
||||
private:
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
class ClipboardServerConnection : public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
||||
class ClipboardServerConnection final
|
||||
: public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
||||
, public ClipboardClientEndpoint {
|
||||
C_OBJECT(ClipboardServerConnection);
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
class NotificationServerConnection : public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>
|
||||
class NotificationServerConnection final
|
||||
: public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>
|
||||
, public NotificationClientEndpoint {
|
||||
C_OBJECT(NotificationServerConnection)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
class WindowManagerServerConnection
|
||||
class WindowManagerServerConnection final
|
||||
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
|
||||
, public WindowManagerClientEndpoint {
|
||||
C_OBJECT(WindowManagerServerConnection)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
class WindowServerConnection
|
||||
class WindowServerConnection final
|
||||
: public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>
|
||||
, public WindowClientEndpoint {
|
||||
C_OBJECT(WindowServerConnection)
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Protocol {
|
|||
|
||||
class Request;
|
||||
|
||||
class RequestClient
|
||||
class RequestClient final
|
||||
: public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint>
|
||||
, public RequestClientEndpoint {
|
||||
C_OBJECT(RequestClient);
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Protocol {
|
|||
|
||||
class WebSocket;
|
||||
|
||||
class WebSocketClient
|
||||
class WebSocketClient final
|
||||
: public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint>
|
||||
, public WebSocketClientEndpoint {
|
||||
C_OBJECT(WebSocketClient);
|
||||
|
|
Loading…
Reference in a new issue