未验证 提交 512b24d5 编写于 作者: O openharmony_ci 提交者: Gitee

!1579 使用new 的方式代替iface_cast

Merge pull request !1579 from yichengzhao/master
......@@ -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<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.
先完成此消息的编辑!
想要评论请 注册