(svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations
This commit is contained in:
@@ -24,12 +24,10 @@ public:
|
||||
};
|
||||
|
||||
/** Factory for the SDL sound driver. */
|
||||
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
|
||||
class FSoundDriver_SDL : public DriverFactoryBase {
|
||||
public:
|
||||
static const int priority = 5;
|
||||
/* virtual */ const char *GetName() { return "sdl"; }
|
||||
/* virtual */ const char *GetDescription() { return "SDL Sound Driver"; }
|
||||
/* virtual */ Driver *CreateInstance() { return new SoundDriver_SDL(); }
|
||||
FSoundDriver_SDL() : DriverFactoryBase(Driver::DT_SOUND, 5, "sdl", "SDL Sound Driver") {}
|
||||
/* virtual */ Driver *CreateInstance() const { return new SoundDriver_SDL(); }
|
||||
};
|
||||
|
||||
#endif /* SOUND_SDL_H */
|
||||
|
Reference in New Issue
Block a user