diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2016-02-22 12:12:27 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2016-02-22 12:12:27 +0100 |
commit | cd395d2af23530f9da471fd6c512e9890c08f69d (patch) | |
tree | 0fb1b8431ef1773d0f4fcee9e780a19a371021a9 /include/astra/AstraObjectFactory.h | |
parent | 3743fdc534b39958c105f4124ad1130d3e8b042a (diff) | |
parent | d2705f52766716b4d4627a62de92e7a2480b6b86 (diff) | |
download | astra-cd395d2af23530f9da471fd6c512e9890c08f69d.tar.gz astra-cd395d2af23530f9da471fd6c512e9890c08f69d.tar.bz2 astra-cd395d2af23530f9da471fd6c512e9890c08f69d.tar.xz astra-cd395d2af23530f9da471fd6c512e9890c08f69d.zip |
Merge pull request #111 from wjp/pluginbuild
Remove dependency of libastra on libpython
Diffstat (limited to 'include/astra/AstraObjectFactory.h')
-rw-r--r-- | include/astra/AstraObjectFactory.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/astra/AstraObjectFactory.h b/include/astra/AstraObjectFactory.h index 325989e..6af9cd8 100644 --- a/include/astra/AstraObjectFactory.h +++ b/include/astra/AstraObjectFactory.h @@ -155,8 +155,11 @@ class _AstraExport CAlgorithmFactory : public CAstraObjectFactory<CAlgorithm, Al template <> inline CAlgorithm* CAstraObjectFactory<CAlgorithm, AlgorithmTypeList>::findPlugin(std::string _sType) { - CPluginAlgorithmFactory *fac = CPluginAlgorithmFactory::getSingletonPtr(); - return fac->getPlugin(_sType); + CPluginAlgorithmFactory *fac = CPluginAlgorithmFactory::getFactory(); + if (fac) + return fac->getPlugin(_sType); + else + return 0; } #endif |