From 6996b441d9d104bc6d7041b64362f4426425f600 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 25 Nov 2013 14:26:46 +0000 Subject: (svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations --- src/sound/win32_s.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/sound/win32_s.h') diff --git a/src/sound/win32_s.h b/src/sound/win32_s.h index 03af04a53..f76849b15 100644 --- a/src/sound/win32_s.h +++ b/src/sound/win32_s.h @@ -24,12 +24,10 @@ public: }; /** Factory for the sound driver for Windows. */ -class FSoundDriver_Win32: public SoundDriverFactory { +class FSoundDriver_Win32 : public DriverFactoryBase { public: - static const int priority = 10; - /* virtual */ const char *GetName() { return "win32"; } - /* virtual */ const char *GetDescription() { return "Win32 WaveOut Driver"; } - /* virtual */ Driver *CreateInstance() { return new SoundDriver_Win32(); } + FSoundDriver_Win32() : DriverFactoryBase(Driver::DT_SOUND, 10, "win32", "Win32 WaveOut Sound Driver") {} + /* virtual */ Driver *CreateInstance() const { return new SoundDriver_Win32(); } }; #endif /* SOUND_WIN32_H */ -- cgit v1.2.3-54-g00ecf