aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-30 00:07:35 -0700
committerChris Robinson <[email protected]>2020-03-30 00:07:35 -0700
commitf8a5ea2d74e4ce6ccfb34ffb9dc8f665135203fc (patch)
tree4ce4936f7f4ac03caa60a11ed0d159ea76e6f2e3 /alc
parent9b237790b274a9191e0835e84c28de6cefbc2d34 (diff)
Inline a couple BackendBase methods
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/base.cpp5
-rw-r--r--alc/backends/base.h6
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>;