diff options
author | Chris Robinson <[email protected]> | 2023-01-13 01:25:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-13 01:25:20 -0800 |
commit | 974d1b9e6d174f1680604b2872911110f6a0e41c (patch) | |
tree | 8dd9517957717b82977e433276a14b9892b3d563 /al/effects/fshifter.cpp | |
parent | 97f2c28ddd79474e163f62d666fc8ce555f31e0f (diff) |
Avoid unnecessary uses of make_optional
Diffstat (limited to 'al/effects/fshifter.cpp')
-rw-r--r-- | al/effects/fshifter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/al/effects/fshifter.cpp b/al/effects/fshifter.cpp index 400c0bf4..9ca28775 100644 --- a/al/effects/fshifter.cpp +++ b/al/effects/fshifter.cpp @@ -24,9 +24,9 @@ al::optional<FShifterDirection> DirectionFromEmum(ALenum value) { switch(value) { - case AL_FREQUENCY_SHIFTER_DIRECTION_DOWN: return al::make_optional(FShifterDirection::Down); - case AL_FREQUENCY_SHIFTER_DIRECTION_UP: return al::make_optional(FShifterDirection::Up); - case AL_FREQUENCY_SHIFTER_DIRECTION_OFF: return al::make_optional(FShifterDirection::Off); + case AL_FREQUENCY_SHIFTER_DIRECTION_DOWN: return FShifterDirection::Down; + case AL_FREQUENCY_SHIFTER_DIRECTION_UP: return FShifterDirection::Up; + case AL_FREQUENCY_SHIFTER_DIRECTION_OFF: return FShifterDirection::Off; } return al::nullopt; } |