aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/null.cpp
diff options
context:
space:
mode:
authorkcat <[email protected]>2019-01-09 17:16:28 -0800
committerGitHub <[email protected]>2019-01-09 17:16:28 -0800
commit30184613a53c9eb013fee10403aa9cd97d4ea5e1 (patch)
treea3dd40b59196464c12c9d8d585100c5226ffb3b2 /Alc/effects/null.cpp
parent8f35f464a1b3ae1b8772a4645941a1fb2fec006e (diff)
parentf7fe15e1cec05a4c9e6a6a207bdb34397086cffc (diff)
Merge pull request #264 from ShFil119/impr/cleanup
Cleanup continuation
Diffstat (limited to 'Alc/effects/null.cpp')
-rw-r--r--Alc/effects/null.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp
index fa35b3c4..96cb3114 100644
--- a/Alc/effects/null.cpp
+++ b/Alc/effects/null.cpp
@@ -1,6 +1,6 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "AL/al.h"
#include "AL/alc.h"
@@ -25,16 +25,12 @@ struct ALnullState final : public EffectState {
/* This constructs the effect state. It's called when the object is first
* created.
*/
-ALnullState::ALnullState()
-{
-}
+ALnullState::ALnullState() = default;
/* This destructs the effect state. It's called only when the effect slot is no
* longer used prior to being freed.
*/
-ALnullState::~ALnullState()
-{
-}
+ALnullState::~ALnullState() = default;
/* This updates the device-dependant effect state. This is called on
* initialization and any time the device parameters (eg. playback frequency,
@@ -69,7 +65,7 @@ struct NullStateFactory final : public EffectStateFactory {
EffectState *NullStateFactory::create()
{ return new ALnullState{}; }
-EffectStateFactory *NullStateFactory_getFactory(void)
+EffectStateFactory *NullStateFactory_getFactory()
{
static NullStateFactory NullFactory{};
return &NullFactory;