summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2014-11-14 08:01:01 -0800
committerMarco Nelissen <marcone@google.com>2014-11-17 08:47:01 -0800
commit097ca275f4717a2c47a5d49f302ed2b72c8a1370 (patch)
tree1c2f6c7b2fc2b71aab6759a0b1d8de22db46e830 /include/binder
parentd72ff140e0df44106cd8539396ce686aa8f3306a (diff)
downloadframeworks_native-097ca275f4717a2c47a5d49f302ed2b72c8a1370.zip
frameworks_native-097ca275f4717a2c47a5d49f302ed2b72c8a1370.tar.gz
frameworks_native-097ca275f4717a2c47a5d49f302ed2b72c8a1370.tar.bz2
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
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/IInterface.h6
1 files changed, 3 insertions, 3 deletions
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<IBinder> asBinder();
- sp<const IBinder> asBinder() const;
-
+ static sp<IBinder> asBinder(const IInterface*);
+ static sp<IBinder> asBinder(const sp<IInterface>&);
+
protected:
virtual ~IInterface();
virtual IBinder* onAsBinder() = 0;