Const-correctness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2009-09-08 19:51:39 +00:00
parent 40e9b8e670
commit c22675b542
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace sys {
~Program();
/// Return process ID of this program.
unsigned GetPid();
unsigned GetPid() const;
/// This function executes the program using the \p arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file

View File

@ -38,7 +38,7 @@ Program::Program() : Data_(0) {}
Program::~Program() {}
unsigned Program::GetPid() {
unsigned Program::GetPid() const {
return reinterpret_cast<unsigned>(Data_);
}

View File

@ -35,7 +35,7 @@ Program::~Program() {
}
}
unsigned Program::GetPid() {
unsigned Program::GetPid() const {
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
return GetProcessId(hProcess);
}