aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-15 10:22:56 -0700
committerChris Robinson <[email protected]>2019-09-15 10:22:56 -0700
commit47f0d301dc27e66263e754913782250f3899527e (patch)
treea6db5ee5aab861aa7f4c71bc3c016978d0f4dbba /alc
parentc5a3c52822d0ab8e36c2d3d31936eae1da64049f (diff)
Make the BackendFactory base destructor protected
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h
index cc33ba50..55240fd2 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -69,8 +69,6 @@ enum class DevProbe {
struct BackendFactory {
- virtual ~BackendFactory() = default;
-
virtual bool init() = 0;
virtual bool querySupport(BackendType type) = 0;
@@ -78,6 +76,9 @@ struct BackendFactory {
virtual void probe(DevProbe type, std::string *outnames) = 0;
virtual BackendPtr createBackend(ALCdevice *device, BackendType type) = 0;
+
+protected:
+ virtual ~BackendFactory() = default;
};
#endif /* ALC_BACKENDS_BASE_H */