summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2013-07-12 16:32:00 -0700
committer Jeff Brown <jeffbrown@google.com> 2013-07-15 15:08:39 -0700
commitada11c5e67cf8587ad3b53dd99c27455ef26291f (patch)
tree5544618d7e1c55af2582f47ea3332d826ab326eb
parentb05c4e0f34df0208dd900f1013ad61acb382f9ad (diff)
Make getCallingUid/Pid const.
Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7
-rw-r--r--include/binder/IPCThreadState.h4
-rw-r--r--libs/binder/IPCThreadState.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/binder/IPCThreadState.h b/include/binder/IPCThreadState.h
index ad0daee74e..5bc123e3c7 100644
--- a/include/binder/IPCThreadState.h
+++ b/include/binder/IPCThreadState.h
@@ -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;
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 5a38b9559a..5951a3ff47 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -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;
}