From 47f0d301dc27e66263e754913782250f3899527e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 15 Sep 2019 10:22:56 -0700 Subject: Make the BackendFactory base destructor protected --- alc/backends/base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'alc/backends') 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 */ -- cgit v1.2.3