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/modulator.cpp | |
parent | 97f2c28ddd79474e163f62d666fc8ce555f31e0f (diff) |
Avoid unnecessary uses of make_optional
Diffstat (limited to 'al/effects/modulator.cpp')
-rw-r--r-- | al/effects/modulator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/al/effects/modulator.cpp b/al/effects/modulator.cpp index e917e3a0..070b0998 100644 --- a/al/effects/modulator.cpp +++ b/al/effects/modulator.cpp @@ -24,9 +24,9 @@ al::optional<ModulatorWaveform> WaveformFromEmum(ALenum value) { switch(value) { - case AL_RING_MODULATOR_SINUSOID: return al::make_optional(ModulatorWaveform::Sinusoid); - case AL_RING_MODULATOR_SAWTOOTH: return al::make_optional(ModulatorWaveform::Sawtooth); - case AL_RING_MODULATOR_SQUARE: return al::make_optional(ModulatorWaveform::Square); + case AL_RING_MODULATOR_SINUSOID: return ModulatorWaveform::Sinusoid; + case AL_RING_MODULATOR_SAWTOOTH: return ModulatorWaveform::Sawtooth; + case AL_RING_MODULATOR_SQUARE: return ModulatorWaveform::Square; } return al::nullopt; } |