diff options
author | Chris Robinson <[email protected]> | 2019-07-01 16:28:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-01 16:28:51 -0700 |
commit | 53c13de5ce6467f15cc12c855418ed2589a8508a (patch) | |
tree | fda5e3f156423d913c641323fb8efb60c90303bf /OpenAL32 | |
parent | eb701714334ce3ced479204e93a3ed4894a4af50 (diff) |
Simplify some optional usage
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alBuffer.cpp b/OpenAL32/alBuffer.cpp index 3f1020bb..8b081b78 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>{al::in_place, DecompResult{fmt.channels, fmt.type}}; + return al::optional<DecompResult>{{fmt.channels, fmt.type}}; } return al::nullopt; } |