From 6383653a8df93d3daa1d5b8e1e694905684ccbda Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Oct 2018 23:20:17 -0400 Subject: hle_ipc: Add member function for querying the existence of a domain header Gets rid of the need to call the getter and then check for null. --- src/core/hle/ipc_helpers.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/hle/ipc_helpers.h') diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index a4bfe2eb0..0a7142ada 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -117,8 +117,7 @@ public: AlignWithPadding(); - const bool request_has_domain_header{context.GetDomainMessageHeader() != nullptr}; - if (context.Session()->IsDomain() && request_has_domain_header) { + if (context.Session()->IsDomain() && context.HasDomainMessageHeader()) { IPC::DomainMessageHeader domain_header{}; domain_header.num_objects = num_domain_objects; PushRaw(domain_header); -- cgit v1.2.3