Switch over to using static binder interface.
Change-Id: I8af23b1c59aa18154db1ba5e0004dc9d23a5a9b8
diff --git a/libqservice/IQService.cpp b/libqservice/IQService.cpp
index 5e67b15..e4aee7a 100644
--- a/libqservice/IQService.cpp
+++ b/libqservice/IQService.cpp
@@ -48,7 +48,7 @@
ALOGD_IF(QSERVICE_DEBUG, "%s: connect HWC client", __FUNCTION__);
Parcel data, reply;
data.writeInterfaceToken(IQService::getInterfaceDescriptor());
- data.writeStrongBinder(client->asBinder());
+ data.writeStrongBinder(IInterface::asBinder(client));
remote()->transact(CONNECT_HWC_CLIENT, data, &reply);
}
@@ -56,7 +56,7 @@
ALOGD_IF(QSERVICE_DEBUG, "%s: connect HDMI client", __FUNCTION__);
Parcel data, reply;
data.writeInterfaceToken(IQService::getInterfaceDescriptor());
- data.writeStrongBinder(client->asBinder());
+ data.writeStrongBinder(IInterface::asBinder(client));
remote()->transact(CONNECT_HDMI_CLIENT, data, &reply);
}