mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Const-correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40e9b8e670
commit
c22675b542
@ -40,7 +40,7 @@ namespace sys {
|
|||||||
~Program();
|
~Program();
|
||||||
|
|
||||||
/// Return process ID of this program.
|
/// Return process ID of this program.
|
||||||
unsigned GetPid();
|
unsigned GetPid() const;
|
||||||
|
|
||||||
/// This function executes the program using the \p arguments provided. The
|
/// This function executes the program using the \p arguments provided. The
|
||||||
/// invoked program will inherit the stdin, stdout, and stderr file
|
/// invoked program will inherit the stdin, stdout, and stderr file
|
||||||
|
@ -38,7 +38,7 @@ Program::Program() : Data_(0) {}
|
|||||||
|
|
||||||
Program::~Program() {}
|
Program::~Program() {}
|
||||||
|
|
||||||
unsigned Program::GetPid() {
|
unsigned Program::GetPid() const {
|
||||||
return reinterpret_cast<unsigned>(Data_);
|
return reinterpret_cast<unsigned>(Data_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ Program::~Program() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned Program::GetPid() {
|
unsigned Program::GetPid() const {
|
||||||
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
|
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
|
||||||
return GetProcessId(hProcess);
|
return GetProcessId(hProcess);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user