From 097ca275f4717a2c47a5d49f302ed2b72c8a1370 Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Fri, 14 Nov 2014 08:01:01 -0800 Subject: Replace IInterface::asBinder() with a static so we can do NULL checks again, and update calls to IInterface::asBinder() to use the new static version. Change-Id: Ia7b10eb38ca55b72278bfd33d3bf647f338b4e6a --- include/binder/IInterface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/binder') diff --git a/include/binder/IInterface.h b/include/binder/IInterface.h index 5f9f69c..4ce3613 100644 --- a/include/binder/IInterface.h +++ b/include/binder/IInterface.h @@ -28,9 +28,9 @@ class IInterface : public virtual RefBase { public: IInterface(); - sp asBinder(); - sp asBinder() const; - + static sp asBinder(const IInterface*); + static sp asBinder(const sp&); + protected: virtual ~IInterface(); virtual IBinder* onAsBinder() = 0; -- cgit v1.1