diff options
author | Chris Robinson <[email protected]> | 2018-12-27 13:40:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-27 13:40:43 -0800 |
commit | 4782d6107d250e3528c5e567dca48da727584ee7 (patch) | |
tree | 05679c4196c4dacfce65991fa4caa7862cf1c381 /Alc/backends/base.cpp | |
parent | 7880f27054cd69cd1e36ebd3d20aa9d6148e3bbd (diff) |
Use a proper constructor/destructor for the ALCbackend base
Diffstat (limited to 'Alc/backends/base.cpp')
-rw-r--r-- | Alc/backends/base.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp index 85f4b034..021a0f17 100644 --- a/Alc/backends/base.cpp +++ b/Alc/backends/base.cpp @@ -26,14 +26,11 @@ ClockLatency GetClockLatency(ALCdevice *device) /* Base ALCbackend method implementations. */ -void ALCbackend_Construct(ALCbackend *self, ALCdevice *device) -{ - self->mDevice = device; -} +ALCbackend::ALCbackend(ALCdevice *device) noexcept : mDevice{device} +{ } -void ALCbackend_Destruct(ALCbackend* UNUSED(self)) -{ -} +ALCbackend::~ALCbackend() +{ } ALCboolean ALCbackend_reset(ALCbackend* UNUSED(self)) { |