diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-06 20:05:37 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-06 21:38:09 +0200 |
commit | 3fcd2180e4e7060b78ca836b48a34901894502e4 (patch) | |
tree | d743703f49c8eacbbbddf7eb8ddbc7616821d3cb /src/core/hle/service | |
parent | bcat: Make ProgressServiceBackend's GetEvent() const (diff) | |
download | yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar.gz yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar.bz2 yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar.lz yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar.xz yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.tar.zst yuzu-3fcd2180e4e7060b78ca836b48a34901894502e4.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/bcat/backend/backend.cpp | 5 | ||||
-rw-r--r-- | src/core/hle/service/bcat/backend/backend.h | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hle/service/bcat/backend/backend.cpp b/src/core/hle/service/bcat/backend/backend.cpp index 2240f4047..7018d294a 100644 --- a/src/core/hle/service/bcat/backend/backend.cpp +++ b/src/core/hle/service/bcat/backend/backend.cpp @@ -10,10 +10,11 @@ namespace Service::BCAT { -ProgressServiceBackend::ProgressServiceBackend(std::string event_name) : impl{} { +ProgressServiceBackend::ProgressServiceBackend(std::string_view event_name) : impl{} { auto& kernel{Core::System::GetInstance().Kernel()}; event = Kernel::WritableEvent::CreateEventPair( - kernel, Kernel::ResetType::Automatic, "ProgressServiceBackend:UpdateEvent:" + event_name); + kernel, Kernel::ResetType::Automatic, + std::string("ProgressServiceBackend:UpdateEvent:").append(event_name)); } Kernel::SharedPtr<Kernel::ReadableEvent> ProgressServiceBackend::GetEvent() const { diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h index 762da94e3..05fd43e67 100644 --- a/src/core/hle/service/bcat/backend/backend.h +++ b/src/core/hle/service/bcat/backend/backend.h @@ -6,6 +6,9 @@ #include <functional> #include <optional> +#include <string> +#include <string_view> + #include "common/common_types.h" #include "core/file_sys/vfs_types.h" #include "core/hle/kernel/readable_event.h" @@ -85,7 +88,7 @@ public: void FinishDownload(ResultCode result); private: - explicit ProgressServiceBackend(std::string event_name); + explicit ProgressServiceBackend(std::string_view event_name); Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent() const; DeliveryCacheProgressImpl& GetImpl(); |