Make getCallingUid/Pid const.

Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7
This commit is contained in:
Jeff Brown 2013-07-12 16:32:00 -07:00
parent b05c4e0f34
commit ada11c5e67
2 changed files with 4 additions and 4 deletions

View 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;

View 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;
}