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/video/cocoa/cocoa_v.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/video/cocoa') diff --git a/src/video/cocoa/cocoa_v.h b/src/video/cocoa/cocoa_v.h index e70a33b15..491efa94b 100644 --- a/src/video/cocoa/cocoa_v.h +++ b/src/video/cocoa/cocoa_v.h @@ -61,12 +61,10 @@ public: /* virtual */ const char *GetName() const { return "cocoa"; } }; -class FVideoDriver_Cocoa: public VideoDriverFactory { +class FVideoDriver_Cocoa : public DriverFactoryBase { public: - static const int priority = 10; - /* virtual */ const char *GetName() { return "cocoa"; } - /* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; } - /* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); } + FVideoDriver_Cocoa() : DriverFactoryBase(Driver::DT_VIDEO, 10, "cocoa", "Cocoa Video Driver") {} + /* virtual */ Driver *CreateInstance() const { return new VideoDriver_Cocoa(); } }; -- cgit v1.2.3-54-g00ecf