aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r--alc/backends/base.h6
1 files changed, 3 insertions, 3 deletions
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>;