diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-11 13:18:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-11 13:18:49 +0100 |
commit | 49fa300703643a2e49df01944f1b1299138010c7 (patch) | |
tree | 205e66516a3c916b55a11e3ad07ba40185504b35 /cppuhelper | |
parent | f72c2a727cb68ead915f3efdaae24a32a92d3243 (diff) |
Don't call Manager::addProvider(null) upon optional NoSuchFileException
Change-Id: I62e953c886886158f227362fef7048459192217b
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/typemanager.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index 5a50967cf604..7fa6737e90f1 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -2141,9 +2141,8 @@ void cppuhelper::TypeManager::readRdbDirectory( void cppuhelper::TypeManager::readRdbFile( rtl::OUString const & uri, bool optional) { - rtl::Reference< unoidl::Provider > prov; try { - prov = unoidl::loadProvider(manager_, uri); + manager_->addProvider(unoidl::loadProvider(manager_, uri)); } catch (unoidl::NoSuchFileException &) { if (!optional) { throw css::uno::DeploymentException( @@ -2157,7 +2156,6 @@ void cppuhelper::TypeManager::readRdbFile( + e.getDetail()), static_cast< cppu::OWeakObject * >(this)); } - manager_->addProvider(prov); } css::uno::Any cppuhelper::TypeManager::getSequenceType( |