OSDN Git Service

Make getCallingUid/Pid const.
authorJeff Brown <jeffbrown@google.com>
Fri, 12 Jul 2013 23:32:00 +0000 (16:32 -0700)
committerJeff Brown <jeffbrown@google.com>
Mon, 15 Jul 2013 22:08:39 +0000 (15:08 -0700)
Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7

include/binder/IPCThreadState.h
libs/binder/IPCThreadState.cpp

index ad0daee..5bc123e 100644 (file)
@@ -39,8 +39,8 @@ public:
             
             status_t            clearLastError();
 
-            int                 getCallingPid();
-            int                 getCallingUid();
+            int                 getCallingPid() const;
+            int                 getCallingUid() const;
 
             void                setStrictModePolicy(int32_t policy);
             int32_t             getStrictModePolicy() const;
index 5a38b95..5951a3f 100644 (file)
@@ -362,12 +362,12 @@ status_t IPCThreadState::clearLastError()
     return err;
 }
 
-int IPCThreadState::getCallingPid()
+int IPCThreadState::getCallingPid() const
 {
     return mCallingPid;
 }
 
-int IPCThreadState::getCallingUid()
+int IPCThreadState::getCallingUid() const
 {
     return mCallingUid;
 }