未验证 提交 851341cd 编写于 作者: O openharmony_ci 提交者: Gitee

!1580 使用new 的方式代替iface_cast

Merge pull request !1580 from yichengzhao/cherry-pick-1669705095
......@@ -46,7 +46,8 @@ int32_t WatcherManagerStub::OnRemoteRequest(uint32_t code,
WATCHER_CHECK(remote != nullptr, reply.WriteUint32(0);
return 0, "Failed to read remote watcher");
uint32_t id = data.ReadUint32();
uint32_t remoteWatcherId = AddRemoteWatcher(id, iface_cast<IWatcher>(remote));
sptr<IWatcher> watcher = new WatcherProxy(remote);
uint32_t remoteWatcherId = AddRemoteWatcher(id, watcher);
reply.WriteUint32(remoteWatcherId);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册