[Libreoffice-commits] core.git: cppuhelper/source
Stephan Bergmann
sbergman at redhat.com
Mon Nov 11 04:19:25 PST 2013
cppuhelper/source/typemanager.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 49fa300703643a2e49df01944f1b1299138010c7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Nov 11 13:18:49 2013 +0100
Don't call Manager::addProvider(null) upon optional NoSuchFileException
Change-Id: I62e953c886886158f227362fef7048459192217b
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index 5a50967..7fa6737 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(
More information about the Libreoffice-commits
mailing list