Revision: 4466 http://pd-gem.svn.sourceforge.net/pd-gem/?rev=4466&view=rev Author: zmoelnig Date: 2011-08-15 13:05:07 +0000 (Mon, 15 Aug 2011)
Log Message: ----------- removed INIT_fooFACTORY() macro it's only used once, so we can simply use it directly Modified Paths: -------------- trunk/Gem/src/plugins/imageloader.cpp trunk/Gem/src/plugins/imageloader.h trunk/Gem/src/plugins/imagesaver.cpp trunk/Gem/src/plugins/imagesaver.h trunk/Gem/src/plugins/record.cpp trunk/Gem/src/plugins/record.h trunk/Gem/src/plugins/video.cpp trunk/Gem/src/plugins/video.h Modified: trunk/Gem/src/plugins/imageloader.cpp =================================================================== --- trunk/Gem/src/plugins/imageloader.cpp 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/imageloader.cpp 2011-08-15 13:05:07 UTC (rev 4466) @@ -21,4 +21,4 @@ return NULL; } -INIT_IMAGELOADERFACTORY(); +static gem::PluginFactoryRegistrar::dummy<gem::plugins::imageloader> fac_imageloaderdummy; Modified: trunk/Gem/src/plugins/imageloader.h =================================================================== --- trunk/Gem/src/plugins/imageloader.h 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/imageloader.h 2011-08-15 13:05:07 UTC (rev 4466) @@ -72,14 +72,4 @@ */ #define REGISTER_IMAGELOADERFACTORY(id, TYP) static gem::PluginFactoryRegistrar::registrar<TYP, gem::plugins::imageloader> fac_imageloader_ ## TYP (id) - -/** - * \fn INIT_IMAGELOADERFACTORY() - * initialized the factory - * \note call this before any externals register themselves - */ -#define INIT_IMAGELOADERFACTORY() \ - static gem::PluginFactoryRegistrar::dummy<gem::plugins::imageloader> fac_imageloaderdummy - - #endif // for header file Modified: trunk/Gem/src/plugins/imagesaver.cpp =================================================================== --- trunk/Gem/src/plugins/imagesaver.cpp 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/imagesaver.cpp 2011-08-15 13:05:07 UTC (rev 4466) @@ -22,4 +22,4 @@ } -INIT_IMAGESAVERFACTORY(); +static gem::PluginFactoryRegistrar::dummy<gem::plugins::imagesaver> fac_imagesaverdummy; Modified: trunk/Gem/src/plugins/imagesaver.h =================================================================== --- trunk/Gem/src/plugins/imagesaver.h 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/imagesaver.h 2011-08-15 13:05:07 UTC (rev 4466) @@ -123,14 +123,4 @@ */ #define REGISTER_IMAGESAVERFACTORY(id, TYP) static gem::PluginFactoryRegistrar::registrar<TYP, gem::plugins::imagesaver> fac_imagesaver_ ## TYP (id) - -/** - * \fn INIT_IMAGESAVERFACTORY() - * initialized the factory - * \note call this before any externals register themselves - */ -#define INIT_IMAGESAVERFACTORY() \ - static gem::PluginFactoryRegistrar::dummy<gem::plugins::imagesaver> fac_imagesaverdummy - - #endif // for header file Modified: trunk/Gem/src/plugins/record.cpp =================================================================== --- trunk/Gem/src/plugins/record.cpp 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/record.cpp 2011-08-15 13:05:07 UTC (rev 4466) @@ -23,5 +23,4 @@ return NULL; } - -INIT_RECORDFACTORY(); +static gem::PluginFactoryRegistrar::dummy<gem::plugins::record> fac_recorddummy; Modified: trunk/Gem/src/plugins/record.h =================================================================== --- trunk/Gem/src/plugins/record.h 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/record.h 2011-08-15 13:05:07 UTC (rev 4466) @@ -105,15 +105,4 @@ */ #define REGISTER_RECORDFACTORY(id, TYP) static gem::PluginFactoryRegistrar::registrar<TYP, gem::plugins::record> fac_record_ ## TYP (id) - -/** - * \fn INIT_RECORDFACTORY() - * initialize the factory - * \note call this before any externals register themselves - */ -#define INIT_RECORDFACTORY() \ - static gem::PluginFactoryRegistrar::dummy<gem::plugins::record> fac_recorddummy - - - #endif // for header file Modified: trunk/Gem/src/plugins/video.cpp =================================================================== --- trunk/Gem/src/plugins/video.cpp 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/video.cpp 2011-08-15 13:05:07 UTC (rev 4466) @@ -21,6 +21,4 @@ return NULL; } - - -INIT_VIDEOFACTORY(); +static gem::PluginFactoryRegistrar::dummy<gem::plugins::video> fac_videodummy; Modified: trunk/Gem/src/plugins/video.h =================================================================== --- trunk/Gem/src/plugins/video.h 2011-08-15 13:04:27 UTC (rev 4465) +++ trunk/Gem/src/plugins/video.h 2011-08-15 13:05:07 UTC (rev 4466) @@ -218,14 +218,4 @@ */ #define REGISTER_VIDEOFACTORY(id, TYP) static gem::PluginFactoryRegistrar::registrar<TYP, gem::plugins::video> fac_video_ ## TYP (id) - -/** - * \fn INIT_VIDEOFACTORY() - * initialized the factory - * \note call this before any externals register themselves - */ -#define INIT_VIDEOFACTORY() \ - static gem::PluginFactoryRegistrar::dummy<gem::plugins::video> fac_videodummy - - #endif // for header file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ pd-gem-CVS mailing list pd-gem-CVS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pd-gem-cvs