summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/comphelper_module.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-07-21 13:46:53 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2011-07-21 13:47:30 +0200
commit74140442bbf39e19bdc05f1cfb975f5a11751f2c (patch)
treec9e87f47c6106093d72b18d218172a05763251f0 /comphelper/source/misc/comphelper_module.cxx
parentd423fd54604ee9fa60c028528c93d5b6c25fbb71 (diff)
Drop macros from componentmodule.hxx
Diffstat (limited to 'comphelper/source/misc/comphelper_module.cxx')
-rw-r--r--comphelper/source/misc/comphelper_module.cxx19
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