From aea7901fde65ec57fc78cb0fc8ee6a7c5aca4801 Mon Sep 17 00:00:00 2001 From: yichengzhao Date: Tue, 29 Nov 2022 14:54:42 +0800 Subject: [PATCH] use new watcher insterad of iface_cast Signed-off-by: yichengzhao Change-Id: Ib82f1d7bf9c2d6df8a9c58aa164a062c26f66c57 --- services/param/watcher/proxy/watcher_manager_stub.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/param/watcher/proxy/watcher_manager_stub.cpp b/services/param/watcher/proxy/watcher_manager_stub.cpp index c7e1263b..7cacbee3 100644 --- a/services/param/watcher/proxy/watcher_manager_stub.cpp +++ b/services/param/watcher/proxy/watcher_manager_stub.cpp @@ -44,7 +44,8 @@ int32_t WatcherManagerStub::OnRemoteRequest(uint32_t code, auto remote = data.ReadRemoteObject(); // 0 is invalid watcherId uint32_t id = data.ReadUint32(); - uint32_t remoteWatcherId = AddRemoteWatcher(id, iface_cast(remote)); + sptr watcher = new WatcherProxy(remote); + uint32_t remoteWatcherId = AddRemoteWatcher(id, watcher); reply.WriteUint32(remoteWatcherId); break; } -- GitLab