diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-07-21 13:46:53 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-07-21 13:47:30 +0200 |
commit | 74140442bbf39e19bdc05f1cfb975f5a11751f2c (patch) | |
tree | c9e87f47c6106093d72b18d218172a05763251f0 /comphelper/source/misc/comphelper_module.cxx | |
parent | d423fd54604ee9fa60c028528c93d5b6c25fbb71 (diff) |
Drop macros from componentmodule.hxx
Diffstat (limited to 'comphelper/source/misc/comphelper_module.cxx')
-rw-r--r-- | comphelper/source/misc/comphelper_module.cxx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/comphelper/source/misc/comphelper_module.cxx b/comphelper/source/misc/comphelper_module.cxx index 8b9ee4221dfc..b2bdad6665cb 100644 --- a/comphelper/source/misc/comphelper_module.cxx +++ b/comphelper/source/misc/comphelper_module.cxx @@ -35,7 +35,24 @@ namespace comphelper { namespace module { //........................................................................ - IMPLEMENT_COMPONENT_MODULE( ComphelperModule ); + struct ComphelperModuleCreator + { + ComphelperModule m_aComphelperModule; + }; + namespace + { + class theComphelperModuleInstance : public rtl::Static<ComphelperModuleCreator, theComphelperModuleInstance> {}; + } + + ComphelperModule::ComphelperModule() + :BaseClass() + { + } + + ComphelperModule& ComphelperModule::getInstance() + { + return theComphelperModuleInstance::get().m_aComphelperModule; + } //........................................................................ } } // namespace comphelper::module |