From 4c4408ebebf023f362adf5a0e4d835b41d6cb9d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 25 Oct 2014 22:25:12 -0700 Subject: [PATCH] Remove a unneeded destructors --- include/AL/alure2.h | 6 ------ src/buffer.h | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/AL/alure2.h b/include/AL/alure2.h index 2244483..a5db49a 100644 --- a/include/AL/alure2.h +++ b/include/AL/alure2.h @@ -251,9 +251,6 @@ public: class Buffer { -protected: - virtual ~Buffer() { } - public: /** Retrieves the length of the buffer in sample frames. */ virtual ALuint getLength() const = 0; @@ -276,9 +273,6 @@ public: class Source { -protected: - virtual ~Source() { } - public: virtual void setLooping(bool looping) = 0; virtual bool getLooping() const = 0; diff --git a/src/buffer.h b/src/buffer.h index ae9ec2d..9f8997a 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -34,6 +34,7 @@ public: ALBuffer(ALDevice *device, ALuint id, ALuint freq, SampleConfig config, SampleType type) : mDevice(device), mId(id), mFrequency(freq), mSampleConfig(config), mSampleType(type), mRefs(0) { } + virtual ~ALBuffer() { } void cleanup(); -- 2.11.4.GIT