From 495111b249e1ef17be96dbdfbc5a13de6d5dd5f9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Dec 2012 11:10:46 +0200 Subject: fdo#46808, use service constructor for sdb::DatabaseContext Change-Id: I4d845f289f324912b0fc4d8e26a2947e2d2f889e --- svtools/source/dialogs/addresstemplate.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svtools') diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 21065383a99d..1a9a4d34b616 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -793,8 +793,7 @@ void AssignmentPersistentData::Commit() { m_xDatabaseContext = DatabaseContext::create(comphelper::getComponentContext(m_xORB)); } - catch(Exception&) { } - if (!m_xDatabaseContext.is()) + catch(const Exception&) { const rtl::OUString sContextServiceName("com.sun.star.sdb.DatabaseContext"); ShowServiceNotAvailableError( this, sContextServiceName, sal_False); -- cgit