summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-14 16:09:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-15 14:16:34 +0000
commit45aad89c34604d2b075bf4f1122589952f582bdb (patch)
treebb30f2864140f4b7ce0472fb5628725171b0fd5c /xmloff
parent8ca2d453e3008c265c8968529991d01579ff8f3a (diff)
Some simplifications, using UNO_QUERY_THROW
Change-Id: Ie82c1f243717eb42218040a9b4d59f8cf10de387 Reviewed-on: https://gerrit.libreoffice.org/34251 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/RDFaExportHelper.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/core/RDFaExportHelper.cxx b/xmloff/source/core/RDFaExportHelper.cxx
index 2bc047b02e1a..6311f238e8ec 100644
--- a/xmloff/source/core/RDFaExportHelper.cxx
+++ b/xmloff/source/core/RDFaExportHelper.cxx
@@ -90,9 +90,7 @@ RDFaExportHelper::RDFaExportHelper(SvXMLExport & i_rExport)
: m_rExport(i_rExport), m_xRepository(nullptr), m_Counter(0)
{
const uno::Reference<rdf::XRepositorySupplier> xRS( m_rExport.GetModel(),
- uno::UNO_QUERY);
- OSL_ENSURE(xRS.is(), "AddRDFa: model is no rdf::XRepositorySupplier");
- if (!xRS.is()) throw uno::RuntimeException();
+ uno::UNO_QUERY_THROW);
m_xRepository.set(xRS->getRDFRepository(), uno::UNO_QUERY_THROW);
}