diff options
author | Filip Gawin <[email protected]> | 2019-01-09 19:43:54 +0100 |
---|---|---|
committer | Filip Gawin <[email protected]> | 2019-01-09 19:43:54 +0100 |
commit | 6ddb2c36fc19f0bdcd46ff56536525325d4d3bc5 (patch) | |
tree | 6a3a30275aa10a898e064d89648e4971cd81f1a7 /Alc/effects | |
parent | 4169c6f37db4fa1cc8e2d052b377af479763a930 (diff) |
Remove redundant void argument list in function def
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/autowah.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/chorus.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/compressor.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/dedicated.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/distortion.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/echo.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/equalizer.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/fshifter.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/modulator.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/null.cpp | 2 | ||||
-rw-r--r-- | Alc/effects/pshifter.cpp | 4 | ||||
-rw-r--r-- | Alc/effects/reverb.cpp | 2 |
12 files changed, 15 insertions, 15 deletions
diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp index 19e287fd..f7d07fe2 100644 --- a/Alc/effects/autowah.cpp +++ b/Alc/effects/autowah.cpp @@ -203,7 +203,7 @@ struct AutowahStateFactory final : public EffectStateFactory { EffectState *AutowahStateFactory::create() { return new ALautowahState{}; } -EffectStateFactory *AutowahStateFactory_getFactory(void) +EffectStateFactory *AutowahStateFactory_getFactory() { static AutowahStateFactory AutowahFactory{}; return &AutowahFactory; diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp index 13a35c54..05216059 100644 --- a/Alc/effects/chorus.cpp +++ b/Alc/effects/chorus.cpp @@ -265,7 +265,7 @@ EffectState *ChorusStateFactory::create() } // namespace -EffectStateFactory *ChorusStateFactory_getFactory(void) +EffectStateFactory *ChorusStateFactory_getFactory() { static ChorusStateFactory ChorusFactory{}; return &ChorusFactory; @@ -384,7 +384,7 @@ DEFINE_ALEFFECT_VTABLE(ALchorus); /* Flanger is basically a chorus with a really short delay. They can both use * the same processing functions, so piggyback flanger on the chorus functions. */ -EffectStateFactory *FlangerStateFactory_getFactory(void) +EffectStateFactory *FlangerStateFactory_getFactory() { return ChorusStateFactory_getFactory(); } diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp index c1bb0ba1..93ab9bbc 100644 --- a/Alc/effects/compressor.cpp +++ b/Alc/effects/compressor.cpp @@ -160,7 +160,7 @@ struct CompressorStateFactory final : public EffectStateFactory { EffectState *CompressorStateFactory::create() { return new ALcompressorState{}; } -EffectStateFactory *CompressorStateFactory_getFactory(void) +EffectStateFactory *CompressorStateFactory_getFactory() { static CompressorStateFactory CompressorFactory{}; return &CompressorFactory; diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 2571d510..64b24e9d 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -102,7 +102,7 @@ struct DedicatedStateFactory final : public EffectStateFactory { EffectState *DedicatedStateFactory::create() { return new ALdedicatedState{}; } -EffectStateFactory *DedicatedStateFactory_getFactory(void) +EffectStateFactory *DedicatedStateFactory_getFactory() { static DedicatedStateFactory DedicatedFactory{}; return &DedicatedFactory; diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp index 95569cda..12eb12fb 100644 --- a/Alc/effects/distortion.cpp +++ b/Alc/effects/distortion.cpp @@ -169,7 +169,7 @@ struct DistortionStateFactory final : public EffectStateFactory { EffectState *DistortionStateFactory::create() { return new ALdistortionState{}; } -EffectStateFactory *DistortionStateFactory_getFactory(void) +EffectStateFactory *DistortionStateFactory_getFactory() { static DistortionStateFactory DistortionFactory{}; return &DistortionFactory; diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp index cadd62f2..197e9686 100644 --- a/Alc/effects/echo.cpp +++ b/Alc/effects/echo.cpp @@ -180,7 +180,7 @@ struct EchoStateFactory final : public EffectStateFactory { EffectState *EchoStateFactory::create() { return new ALechoState{}; } -EffectStateFactory *EchoStateFactory_getFactory(void) +EffectStateFactory *EchoStateFactory_getFactory() { static EchoStateFactory EchoFactory{}; return &EchoFactory; diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp index 5c531079..fc00d00f 100644 --- a/Alc/effects/equalizer.cpp +++ b/Alc/effects/equalizer.cpp @@ -184,7 +184,7 @@ struct EqualizerStateFactory final : public EffectStateFactory { EffectState *EqualizerStateFactory::create() { return new ALequalizerState{}; } -EffectStateFactory *EqualizerStateFactory_getFactory(void) +EffectStateFactory *EqualizerStateFactory_getFactory() { static EqualizerStateFactory EqualizerFactory{}; return &EqualizerFactory; diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp index 994dd90c..55ff4247 100644 --- a/Alc/effects/fshifter.cpp +++ b/Alc/effects/fshifter.cpp @@ -46,7 +46,7 @@ using complex_d = std::complex<double>; /* Define a Hann window, used to filter the HIL input and output. */ /* Making this constexpr seems to require C++14. */ -std::array<ALdouble,HIL_SIZE> InitHannWindow(void) +std::array<ALdouble,HIL_SIZE> InitHannWindow() { std::array<ALdouble,HIL_SIZE> ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ @@ -211,7 +211,7 @@ struct FshifterStateFactory final : public EffectStateFactory { EffectState *FshifterStateFactory::create() { return new ALfshifterState{}; } -EffectStateFactory *FshifterStateFactory_getFactory(void) +EffectStateFactory *FshifterStateFactory_getFactory() { static FshifterStateFactory FshifterFactory{}; return &FshifterFactory; diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp index 4b7adaba..d9a3046e 100644 --- a/Alc/effects/modulator.cpp +++ b/Alc/effects/modulator.cpp @@ -177,7 +177,7 @@ struct ModulatorStateFactory final : public EffectStateFactory { EffectState *ModulatorStateFactory::create() { return new ALmodulatorState{}; } -EffectStateFactory *ModulatorStateFactory_getFactory(void) +EffectStateFactory *ModulatorStateFactory_getFactory() { static ModulatorStateFactory ModulatorFactory{}; return &ModulatorFactory; diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp index 9cb73e72..7401fa6d 100644 --- a/Alc/effects/null.cpp +++ b/Alc/effects/null.cpp @@ -69,7 +69,7 @@ struct NullStateFactory final : public EffectStateFactory { EffectState *NullStateFactory::create() { return new ALnullState{}; } -EffectStateFactory *NullStateFactory_getFactory(void) +EffectStateFactory *NullStateFactory_getFactory() { static NullStateFactory NullFactory{}; return &NullFactory; diff --git a/Alc/effects/pshifter.cpp b/Alc/effects/pshifter.cpp index f0b9de1c..7bd7ada0 100644 --- a/Alc/effects/pshifter.cpp +++ b/Alc/effects/pshifter.cpp @@ -78,7 +78,7 @@ inline int double2int(double d) /* Define a Hann window, used to filter the STFT input and output. */ /* Making this constexpr seems to require C++14. */ -std::array<ALdouble,STFT_SIZE> InitHannWindow(void) +std::array<ALdouble,STFT_SIZE> InitHannWindow() { std::array<ALdouble,STFT_SIZE> ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ @@ -326,7 +326,7 @@ struct PshifterStateFactory final : public EffectStateFactory { EffectState *PshifterStateFactory::create() { return new ALpshifterState{}; } -EffectStateFactory *PshifterStateFactory_getFactory(void) +EffectStateFactory *PshifterStateFactory_getFactory() { static PshifterStateFactory PshifterFactory{}; return &PshifterFactory; diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index 8ce93339..6f007046 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -1420,7 +1420,7 @@ EffectState *ReverbStateFactory::create() } // namespace -EffectStateFactory *ReverbStateFactory_getFactory(void) +EffectStateFactory *ReverbStateFactory_getFactory() { static ReverbStateFactory ReverbFactory{}; return &ReverbFactory; |