提交 aea7901f 编写于 作者: Y yichengzhao

use new watcher insterad of iface_cast

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