From ada11c5e67cf8587ad3b53dd99c27455ef26291f Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 12 Jul 2013 16:32:00 -0700 Subject: [PATCH] Make getCallingUid/Pid const. Change-Id: I1853b21eaa45d85274189dfd72f73fec48d0d6b7 --- include/binder/IPCThreadState.h | 4 ++-- libs/binder/IPCThreadState.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/binder/IPCThreadState.h b/include/binder/IPCThreadState.h index ad0daee74..5bc123e3c 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 5a38b9559..5951a3ff4 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; }