diff options
Diffstat (limited to 'unotools/source/misc/componentresmodule.cxx')
-rw-r--r-- | unotools/source/misc/componentresmodule.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx index 8a01cae59864..99292a9205d3 100644 --- a/unotools/source/misc/componentresmodule.cxx +++ b/unotools/source/misc/componentresmodule.cxx @@ -23,12 +23,9 @@ #include <osl/diagnose.h> #include <rtl/strbuf.hxx> - namespace utl { - - //= OComponentResModuleImpl /** PIMPL-class for OComponentResourceModule @@ -69,14 +66,12 @@ namespace utl OComponentResModuleImpl& operator=( const OComponentResModuleImpl& ); // never implemented }; - void OComponentResModuleImpl::freeResManager() { delete m_pResources, m_pResources = NULL; m_bInitialized = false; } - ResMgr* OComponentResModuleImpl::getResManager() { if ( !m_pResources && !m_bInitialized ) @@ -95,43 +90,35 @@ namespace utl return m_pResources; } - //= OComponentResourceModule - OComponentResourceModule::OComponentResourceModule( const OString& _rResFilePrefix ) :BaseClass() ,m_pImpl( new OComponentResModuleImpl( _rResFilePrefix ) ) { } - OComponentResourceModule::~OComponentResourceModule() { } - ResMgr* OComponentResourceModule::getResManager() { ::osl::MutexGuard aGuard( m_aMutex ); return m_pImpl->getResManager(); } - void OComponentResourceModule::onFirstClient() { BaseClass::onFirstClient(); } - void OComponentResourceModule::onLastClient() { m_pImpl->freeResManager(); BaseClass::onLastClient(); } - } // namespace utl - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |