Some simplifications, using UNO_QUERY_THROW

Change-Id: I3d29240b7a3aa1d8941ca97f3c3e941e884cbf8b
Reviewed-on: https://gerrit.libreoffice.org/34272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2017-02-14 16:11:16 +01:00
parent 20d648625b
commit 22f96dad08

View File

@@ -2266,10 +2266,7 @@ resolveInterfaceTypedef(
return xIfaceTd;
Reference<reflection::XIndirectTypeDescription> xIndTd(
type, UNO_QUERY);
if (xIndTd.is() == sal_False)
throw css::uno::Exception(
"resolveInterfaceTypedef was called with an invalid argument", 0);
type, UNO_QUERY_THROW);
return resolveInterfaceTypedef(xIndTd->getReferencedType());
}