diff options
-rw-r--r-- | alc/backends/base.cpp | 5 | ||||
-rw-r--r-- | alc/backends/base.h | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index f79f2063..3a05cb2b 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -24,11 +24,6 @@ ClockLatency GetClockLatency(ALCdevice *device) /* BackendBase method implementations. */ -BackendBase::BackendBase(ALCdevice *device) noexcept : mDevice{device} -{ } - -BackendBase::~BackendBase() = default; - bool BackendBase::reset() { throw al::backend_exception{ALC_INVALID_DEVICE, "Invalid BackendBase call"}; } diff --git a/alc/backends/base.h b/alc/backends/base.h index 310191b1..6f0c773d 100644 --- a/alc/backends/base.h +++ b/alc/backends/base.h @@ -43,10 +43,10 @@ struct BackendBase { virtual ClockLatency getClockLatency(); - ALCdevice *mDevice; + ALCdevice *const mDevice; - BackendBase(ALCdevice *device) noexcept; - virtual ~BackendBase(); + BackendBase(ALCdevice *device) noexcept : mDevice{device} { } + virtual ~BackendBase() = default; }; using BackendPtr = std::unique_ptr<BackendBase>; |