drop unneded variables

Change-Id: Ia494251483b57d747348976674206dd33eb29c7c
Reviewed-on: https://gerrit.libreoffice.org/54874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
David Tardon 2018-05-27 08:15:35 +02:00 committed by Mike Kaganski
parent 04a2e5bf89
commit 3fe61a95b9
3 changed files with 5 additions and 11 deletions

View File

@ -59,15 +59,13 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL ContentHandlerFactory::crea
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
OUString sRealHandler = sHandler;
auto & cache = TheFilterCache::get();
// search handler on cache
CacheItem aHandler = cache.getItem(FilterCache::E_CONTENTHANDLER, sRealHandler);
CacheItem aHandler = cache.getItem(FilterCache::E_CONTENTHANDLER, sHandler);
// create service instance
xHandler = m_xContext->getServiceManager()->createInstanceWithContext(sRealHandler, m_xContext);
xHandler = m_xContext->getServiceManager()->createInstanceWithContext(sHandler, m_xContext);
// initialize filter
css::uno::Reference< css::lang::XInitialization > xInit(xHandler, css::uno::UNO_QUERY);

View File

@ -76,12 +76,10 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL FilterFactory::createInstan
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
OUString sRealFilter = sFilter;
auto & cache = TheFilterCache::get();
// search filter on cache
CacheItem aFilter = cache.getItem(FilterCache::E_FILTER, sRealFilter);
CacheItem aFilter = cache.getItem(FilterCache::E_FILTER, sFilter);
OUString sFilterService;
aFilter[PROPNAME_FILTERSERVICE] >>= sFilterService;

View File

@ -56,15 +56,13 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL FrameLoaderFactory::createI
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
OUString sRealLoader = sLoader;
auto & cache = TheFilterCache::get();
// search loader on cache
CacheItem aLoader = cache.getItem(m_eType, sRealLoader);
CacheItem aLoader = cache.getItem(m_eType, sLoader);
// create service instance
css::uno::Reference< css::uno::XInterface > xLoader = m_xContext->getServiceManager()->createInstanceWithContext(sRealLoader, m_xContext);
css::uno::Reference< css::uno::XInterface > xLoader = m_xContext->getServiceManager()->createInstanceWithContext(sLoader, m_xContext);
// initialize filter
css::uno::Reference< css::lang::XInitialization > xInit(xLoader, css::uno::UNO_QUERY);