diff options
| author | 2021-04-19 12:36:08 -0400 | |
|---|---|---|
| committer | 2021-04-19 12:36:10 -0400 | |
| commit | 9f39f7c0411887a243739ff5ec3eafd7d2860323 (patch) | |
| tree | 4f19c85f5ba050b7bac3dbbd5390588449ecb009 /src/core/hle/service/glue | |
| parent | arp: Prevent uninitialized read of launch member variable (diff) | |
| download | yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.gz yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.xz yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.zip | |
arp: Use type alias for issue function
Reduces some verbosity and centralizes the function details in one spot.
Diffstat (limited to 'src/core/hle/service/glue')
| -rw-r--r-- | src/core/hle/service/glue/arp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp index e6d9d1b24..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> { | |||
| 157 | friend class ARP_W; | 157 | friend class ARP_W; |
| 158 | 158 | ||
| 159 | public: | 159 | public: |
| 160 | explicit IRegistrar( | 160 | using IssuerFn = std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)>; |
| 161 | Core::System& system_, | 161 | |
| 162 | std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issuer) | 162 | explicit IRegistrar(Core::System& system_, IssuerFn&& issuer) |
| 163 | : ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} { | 163 | : ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} { |
| 164 | // clang-format off | 164 | // clang-format off |
| 165 | static const FunctionInfo functions[] = { | 165 | static const FunctionInfo functions[] = { |
| @@ -238,7 +238,7 @@ private: | |||
| 238 | rb.Push(RESULT_SUCCESS); | 238 | rb.Push(RESULT_SUCCESS); |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id; | 241 | IssuerFn issue_process_id; |
| 242 | bool issued = false; | 242 | bool issued = false; |
| 243 | ApplicationLaunchProperty launch{}; | 243 | ApplicationLaunchProperty launch{}; |
| 244 | std::vector<u8> control; | 244 | std::vector<u8> control; |