diff options
| author | 2019-03-07 16:44:28 -0500 | |
|---|---|---|
| committer | 2019-03-07 23:34:37 -0500 | |
| commit | fbb82e61e35a4e40154ad9a9fcb1ecc46f6622b8 (patch) | |
| tree | efe360f1934201e7950a61e710b388f799dd8ad7 /src/core/hle/ipc_helpers.h | |
| parent | travis: Bump macOS version to 10.14 (diff) | |
| download | yuzu-fbb82e61e35a4e40154ad9a9fcb1ecc46f6622b8.tar.gz yuzu-fbb82e61e35a4e40154ad9a9fcb1ecc46f6622b8.tar.xz yuzu-fbb82e61e35a4e40154ad9a9fcb1ecc46f6622b8.zip | |
kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optional
There's no real need to use a shared lifetime here, since we don't
actually expose them to anything else. This is also kind of an
unnecessary use of the heap given the objects themselves are so small;
small enough, in fact that changing over to optionals actually reduces
the overall size of the HLERequestContext struct (818 bytes to 808
bytes).
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 90f276ee8..079283830 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h | |||
| @@ -350,7 +350,7 @@ public: | |||
| 350 | template <class T> | 350 | template <class T> |
| 351 | std::shared_ptr<T> PopIpcInterface() { | 351 | std::shared_ptr<T> PopIpcInterface() { |
| 352 | ASSERT(context->Session()->IsDomain()); | 352 | ASSERT(context->Session()->IsDomain()); |
| 353 | ASSERT(context->GetDomainMessageHeader()->input_object_count > 0); | 353 | ASSERT(context->GetDomainMessageHeader().input_object_count > 0); |
| 354 | return context->GetDomainRequestHandler<T>(Pop<u32>() - 1); | 354 | return context->GetDomainRequestHandler<T>(Pop<u32>() - 1); |
| 355 | } | 355 | } |
| 356 | }; | 356 | }; |