summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-19 23:30:36 +0200
committerGitHub <noreply@github.com>2021-04-19 23:30:36 +0200
commit0da84c4de8cc831ccffd67a8ce4e953c0c92fd87 (patch)
tree4f19c85f5ba050b7bac3dbbd5390588449ecb009
parentMerge pull request #6208 from lat9nq/boost-static (diff)
parentarp: Use type alias for issue function (diff)
downloadyuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar.gz
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar.bz2
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar.lz
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar.xz
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.tar.zst
yuzu-0da84c4de8cc831ccffd67a8ce4e953c0c92fd87.zip
-rw-r--r--src/core/hle/service/glue/arp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp
index 322125135..7b1c6677c 100644
--- a/src/core/hle/service/glue/arp.cpp
+++ b/src/core/hle/service/glue/arp.cpp
@@ -157,9 +157,9 @@ class IRegistrar final : public ServiceFramework<IRegistrar> {
friend class ARP_W;
public:
- explicit IRegistrar(
- Core::System& system_,
- std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issuer)
+ using IssuerFn = std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)>;
+
+ explicit IRegistrar(Core::System& system_, IssuerFn&& issuer)
: ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} {
// clang-format off
static const FunctionInfo functions[] = {
@@ -238,9 +238,9 @@ private:
rb.Push(RESULT_SUCCESS);
}
- std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id;
+ IssuerFn issue_process_id;
bool issued = false;
- ApplicationLaunchProperty launch;
+ ApplicationLaunchProperty launch{};
std::vector<u8> control;
};