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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user