modulemanager.cxx (06fea5eb) modulemanager.cxx (9f813b30)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 192 unchanged lines hidden (view full) ---

201 css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR = m_xSMGR;
202 aReadLock.unlock();
203 // <- SAFE ----------------------------------
204
205 // get access to the element
206 // Note: Dont use impl_getConfig() method here. Because it creates a readonly access only, further
207 // it cache it as a member of this module manager instance. If we change some props there ... but dont
208 // flush changes (because an error occurred) we will read them later. If we use a different config access
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 192 unchanged lines hidden (view full) ---

201 css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR = m_xSMGR;
202 aReadLock.unlock();
203 // <- SAFE ----------------------------------
204
205 // get access to the element
206 // Note: Dont use impl_getConfig() method here. Because it creates a readonly access only, further
207 // it cache it as a member of this module manager instance. If we change some props there ... but dont
208 // flush changes (because an error occurred) we will read them later. If we use a different config access
209 // we can close it without a flush ... and our read data wont be affected .-)
209 // we can close it without a flush ... and our read data won't be affected .-)
210 css::uno::Reference< css::uno::XInterface > xCfg = ::comphelper::ConfigurationHelper::openConfig(
211 xSMGR,
212 CFGPATH_FACTORIES,
213 ::comphelper::ConfigurationHelper::E_STANDARD);
214 css::uno::Reference< css::container::XNameAccess > xModules (xCfg, css::uno::UNO_QUERY_THROW);
215 css::uno::Reference< css::container::XNameReplace > xModule ;
216
217 xModules->getByName(sName) >>= xModule;

--- 204 unchanged lines hidden ---
210 css::uno::Reference< css::uno::XInterface > xCfg = ::comphelper::ConfigurationHelper::openConfig(
211 xSMGR,
212 CFGPATH_FACTORIES,
213 ::comphelper::ConfigurationHelper::E_STANDARD);
214 css::uno::Reference< css::container::XNameAccess > xModules (xCfg, css::uno::UNO_QUERY_THROW);
215 css::uno::Reference< css::container::XNameReplace > xModule ;
216
217 xModules->getByName(sName) >>= xModule;

--- 204 unchanged lines hidden ---