Core: Alter the kernel string functions to use std::string instead of const char*.
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
This commit is contained in:
parent
68c81f28d9
commit
98fa3f7cba
16 changed files with 38 additions and 41 deletions
|
@ -15,8 +15,8 @@ namespace Kernel {
|
|||
|
||||
class Mutex : public Object {
|
||||
public:
|
||||
const char* GetTypeName() const { return "Mutex"; }
|
||||
const char* GetName() const { return name.c_str(); }
|
||||
std::string GetTypeName() const { return "Mutex"; }
|
||||
std::string GetName() const { return name; }
|
||||
|
||||
static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Mutex; }
|
||||
Kernel::HandleType GetHandleType() const { return Kernel::HandleType::Mutex; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue