Use = default to define trivial dtor/ctor

This commit is contained in:
Filip Gawin
2019-01-09 19:57:35 +01:00
parent 6ddb2c36fc
commit f7fe15e1ce
2 changed files with 3 additions and 8 deletions
+1 -2
View File
@@ -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; }
+2 -6
View File
@@ -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,