Inline a couple BackendBase methods

This commit is contained in:
Chris Robinson
2020-03-30 00:07:35 -07:00
parent 9b237790b2
commit f8a5ea2d74
2 changed files with 3 additions and 8 deletions
-5
View File
@@ -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"}; }
+3 -3
View File
@@ -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>;