diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-02 22:03:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 22:03:54 +0200 |
commit | 57279e198158297c44da6164d681f1738b710da1 (patch) | |
tree | 8e5851ae283654ec7fd5e29965d819e4d718b7b8 /src/core/hle/kernel/resource_limit.cpp | |
parent | Merge pull request #2316 from ReinUsesLisp/fixup-process (diff) | |
parent | kernel/resource_limit: Remove the name member from resource limits (diff) | |
download | yuzu-57279e198158297c44da6164d681f1738b710da1.tar yuzu-57279e198158297c44da6164d681f1738b710da1.tar.gz yuzu-57279e198158297c44da6164d681f1738b710da1.tar.bz2 yuzu-57279e198158297c44da6164d681f1738b710da1.tar.lz yuzu-57279e198158297c44da6164d681f1738b710da1.tar.xz yuzu-57279e198158297c44da6164d681f1738b710da1.tar.zst yuzu-57279e198158297c44da6164d681f1738b710da1.zip |
Diffstat (limited to 'src/core/hle/kernel/resource_limit.cpp')
-rw-r--r-- | src/core/hle/kernel/resource_limit.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp index 2f9695005..173f69915 100644 --- a/src/core/hle/kernel/resource_limit.cpp +++ b/src/core/hle/kernel/resource_limit.cpp @@ -16,11 +16,8 @@ constexpr std::size_t ResourceTypeToIndex(ResourceType type) { ResourceLimit::ResourceLimit(KernelCore& kernel) : Object{kernel} {} ResourceLimit::~ResourceLimit() = default; -SharedPtr<ResourceLimit> ResourceLimit::Create(KernelCore& kernel, std::string name) { - SharedPtr<ResourceLimit> resource_limit(new ResourceLimit(kernel)); - - resource_limit->name = std::move(name); - return resource_limit; +SharedPtr<ResourceLimit> ResourceLimit::Create(KernelCore& kernel) { + return new ResourceLimit(kernel); } s64 ResourceLimit::GetCurrentResourceValue(ResourceType resource) const { |