diff options
| author | 2014-08-17 23:03:22 -0400 | |
|---|---|---|
| committer | 2014-08-17 23:12:20 -0400 | |
| commit | 98fa3f7cba22997aef8ec4d121584c2488389c38 (patch) | |
| tree | 40585fc835fa8fc27882923a4439d88e7ae171de /src/core/hle/kernel/event.cpp | |
| parent | Merge pull request #52 from lioncash/memory (diff) | |
| download | yuzu-98fa3f7cba22997aef8ec4d121584c2488389c38.tar.gz yuzu-98fa3f7cba22997aef8ec4d121584c2488389c38.tar.xz yuzu-98fa3f7cba22997aef8ec4d121584c2488389c38.zip | |
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.
Diffstat (limited to 'src/core/hle/kernel/event.cpp')
| -rw-r--r-- | src/core/hle/kernel/event.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp index 1e417e09c..64f6a9649 100644 --- a/src/core/hle/kernel/event.cpp +++ b/src/core/hle/kernel/event.cpp | |||
| @@ -16,8 +16,8 @@ namespace Kernel { | |||
| 16 | 16 | ||
| 17 | class Event : public Object { | 17 | class Event : public Object { |
| 18 | public: | 18 | public: |
| 19 | const char* GetTypeName() const { return "Event"; } | 19 | std::string GetTypeName() const { return "Event"; } |
| 20 | const char* GetName() const { return name.c_str(); } | 20 | std::string GetName() const { return name; } |
| 21 | 21 | ||
| 22 | static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Event; } | 22 | static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Event; } |
| 23 | Kernel::HandleType GetHandleType() const { return Kernel::HandleType::Event; } | 23 | Kernel::HandleType GetHandleType() const { return Kernel::HandleType::Event; } |