diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-03 11:10:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-06 13:35:36 +0200 |
commit | 495111b249e1ef17be96dbdfbc5a13de6d5dd5f9 (patch) | |
tree | 07c2b5972b0786ae8ff970855574c4915078c09d /svtools/source | |
parent | 1faac45905a2dc28b36f7957cb008e8c0e7fa3c1 (diff) |
fdo#46808, use service constructor for sdb::DatabaseContext
Change-Id: I4d845f289f324912b0fc4d8e26a2947e2d2f889e
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |