Const-correctness.

llvm-svn: 81249
This commit is contained in:
Mikhail Glushenkov 2009-09-08 19:51:39 +00:00
parent 28471eee1d
commit 29b5d3012b
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);
}