From 502d73814ef09dafe6bc37573f1c708fc71a2fd7 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 2 Jan 2024 15:16:37 +0800 Subject: [PATCH] Cast clientCommServices to NSObject with correct protocol Signed-off-by: Claudio Cambra --- src/gui/macOS/fileproviderxpc_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/macOS/fileproviderxpc_mac.mm b/src/gui/macOS/fileproviderxpc_mac.mm index c7c4ae4cb1..fcda789819 100644 --- a/src/gui/macOS/fileproviderxpc_mac.mm +++ b/src/gui/macOS/fileproviderxpc_mac.mm @@ -51,7 +51,7 @@ void FileProviderXPC::processConnections(NSArray *const connections) connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:remoteObjectInterfaceProtocol]; FileProviderXPCUtils::configureFileProviderConnection(connection); - const auto clientCommService = FileProviderXPCUtils::getRemoteServiceObject(connection, remoteObjectInterfaceProtocol); + const auto clientCommService = (NSObject *)FileProviderXPCUtils::getRemoteServiceObject(connection, remoteObjectInterfaceProtocol); if (clientCommService == nil) { qCWarning(lcFileProviderXPC) << "Client communication service is nil"; continue;