aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/bcat/backend/backend.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-06 14:05:37 -0400
committerLioncash <mathew1800@gmail.com>2019-10-06 15:38:09 -0400
commit3fcd2180e4e7060b78ca836b48a34901894502e4 (patch)
treed743703f49c8eacbbbddf7eb8ddbc7616821d3cb /src/core/hle/service/bcat/backend/backend.h
parentf2fa16b609e12279f81b2e9cf30a43946cce5092 (diff)
bcat: Make ProgressServiceBackend's constructor take a std::string_view
Given the string is appended to another, we can make it a view so a redundant full copy of the string isn't made.
Diffstat (limited to 'src/core/hle/service/bcat/backend/backend.h')
-rw-r--r--src/core/hle/service/bcat/backend/backend.h5
1 files changed, 4 insertions, 1 deletions
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();