提交 3d10f2af 编写于 作者: Y yichengzhao

fixed aea7901f from https://gitee.com/YiYiYiol/startup_init_lite/pulls/1579

use new watcher insterad of iface_cast
Signed-off-by: Nyichengzhao <yichengzhao1@huawei.com>
Change-Id: Ib82f1d7bf9c2d6df8a9c58aa164a062c26f66c57
上级 b1624333
......@@ -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.
先完成此消息的编辑!
想要评论请 注册