aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-07-01 17:25:58 -0700
committerChris Robinson <[email protected]>2019-07-01 17:25:58 -0700
commit6bb0edf0a57bdb95c017db986f76eddbc80857e1 (patch)
treedc2b0677dc338843c585b2499136d16b56e9d1f0 /OpenAL32
parent53c13de5ce6467f15cc12c855418ed2589a8508a (diff)
Create and use a make_optional method
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.cpp b/OpenAL32/alBuffer.cpp
index 8b081b78..a6ed98cc 100644
--- a/OpenAL32/alBuffer.cpp
+++ b/OpenAL32/alBuffer.cpp
@@ -402,7 +402,7 @@ al::optional<DecompResult> DecomposeUserFormat(ALenum format)
for(const auto &fmt : UserFmtList)
{
if(fmt.format == format)
- return al::optional<DecompResult>{{fmt.channels, fmt.type}};
+ return al::make_optional(DecompResult{fmt.channels, fmt.type});
}
return al::nullopt;
}