[Igarden-commit] Garden/source/Plugins RenderPlugin.cpp, 1.13.2.4, 1.13.2.5
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-12-26 19:05:46
|
Update of /cvsroot/igarden/Garden/source/Plugins In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2770 Modified Files: Tag: Release_branch_v1 RenderPlugin.cpp Log Message: Change render plugin GUID Index: RenderPlugin.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Plugins/RenderPlugin.cpp,v retrieving revision 1.13.2.4 retrieving revision 1.13.2.5 diff -C2 -d -r1.13.2.4 -r1.13.2.5 *** RenderPlugin.cpp 29 Nov 2006 12:21:14 -0000 1.13.2.4 --- RenderPlugin.cpp 26 Dec 2006 19:05:42 -0000 1.13.2.5 *************** *** 36,40 **** const long numStyles = 3; ! #define kDefaultStyleFactoryID (CFUUIDGetConstantUUIDWithBytes(NULL, 0x95, 0xD0, 0x14, 0x92, 0x0D, 0x05, 0x11, 0xDA, 0xAB, 0x89, 0xC4, 0x67, 0xFD, 0x39, 0x7B, 0x7A)) XGDirectory *gPluginDirectory = NULL; --- 36,40 ---- const long numStyles = 3; ! #define kDefaultStyleFactoryID (CFUUIDGetConstantUUIDWithBytes(NULL, 0x12, 0x52, 0x90, 0xcb, 0x0b, 0xba, 0x49, 0xeb, 0x86, 0x27, 0xc1, 0xb4, 0xc5, 0xcb, 0xbb, 0x16)) XGDirectory *gPluginDirectory = NULL; *************** *** 42,46 **** #pragma mark **** Default Render Style Plugin **** ! class DefaultRenderType : public BasicRenderStylePlugin { public: --- 42,46 ---- #pragma mark **** Default Render Style Plugin **** ! class BasicRenderType : public BasicRenderStylePlugin { public: *************** *** 56,64 **** // ! static DefaultRenderType *_allocMyType( CFUUIDRef factoryID ) { // Allocate memory for the new instance. ! DefaultRenderType *newOne = new DefaultRenderType; // Retain and keep an open instance refcount for each factory. --- 56,64 ---- // ! static BasicRenderType *_allocMyType( CFUUIDRef factoryID ) { // Allocate memory for the new instance. ! BasicRenderType *newOne = new BasicRenderType; // Retain and keep an open instance refcount for each factory. *************** *** 80,84 **** // ! static void _deallocMyType( DefaultRenderType *myInstance ) { CFUUIDRef factoryID = myInstance->_factoryID; --- 80,84 ---- // ! static void _deallocMyType( BasicRenderType *myInstance ) { CFUUIDRef factoryID = myInstance->_factoryID; *************** *** 102,106 **** if ( CFEqual( typeID, kRenderTypeID ) ) { ! DefaultRenderType *result = _allocMyType( kDefaultStyleFactoryID ); return result; } --- 102,106 ---- if ( CFEqual( typeID, kRenderTypeID ) ) { ! BasicRenderType *result = _allocMyType( kDefaultStyleFactoryID ); return result; } *************** *** 190,194 **** if ( _refCount == 0 ) { ! _deallocMyType( (DefaultRenderType *) this ); return 0; } --- 190,194 ---- if ( _refCount == 0 ) { ! _deallocMyType( (BasicRenderType *) this ); return 0; } *************** *** 472,476 **** if ( _refCount == 0 ) { ! _deallocMyType( (DefaultRenderType *) this ); return 0; } --- 472,476 ---- if ( _refCount == 0 ) { ! _deallocMyType( (BasicRenderType *) this ); return 0; } *************** *** 699,703 **** if ( _refCount == 0 ) { ! _deallocMyType( (DefaultRenderType *) this ); return 0; } --- 699,703 ---- if ( _refCount == 0 ) { ! _deallocMyType( (BasicRenderType *) this ); return 0; } |