aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-09 19:57:35 +0100
committerFilip Gawin <[email protected]>2019-01-09 19:57:35 +0100
commitf7fe15e1cec05a4c9e6a6a207bdb34397086cffc (patch)
treea3dd40b59196464c12c9d8d585100c5226ffb3b2
parent6ddb2c36fc19f0bdcd46ff56536525325d4d3bc5 (diff)
Use `= default` to define trivial dtor/ctor
-rw-r--r--Alc/backends/base.cpp3
-rw-r--r--Alc/effects/null.cpp8
2 files changed, 3 insertions, 8 deletions
diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp
index 39aa2c45..ba5e5486 100644
--- a/Alc/backends/base.cpp
+++ b/Alc/backends/base.cpp
@@ -24,8 +24,7 @@ ClockLatency GetClockLatency(ALCdevice *device)
BackendBase::BackendBase(ALCdevice *device) noexcept : mDevice{device}
{ }
-BackendBase::~BackendBase()
-{ }
+BackendBase::~BackendBase() = default;
ALCboolean BackendBase::reset()
{ return ALC_FALSE; }
diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp
index 7401fa6d..96cb3114 100644
--- a/Alc/effects/null.cpp
+++ b/Alc/effects/null.cpp
@@ -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,