diff --git a/svx/source/form/fmdmod.cxx b/svx/source/form/fmdmod.cxx index e5092ebe4fb3..6012e9c2009d 100644 --- a/svx/source/form/fmdmod.cxx +++ b/svx/source/form/fmdmod.cxx @@ -47,11 +47,19 @@ using namespace ::svxform; } //----------------------------------------------------------------------------- + +// Encapsulation violation: We *know* that +// SvxUnoDrawMSFactory::createInstanceWithArguments() always throws. + +SAL_WNOUNREACHABLE_CODE_PUSH + ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxFmMSFactory::createInstanceWithArguments(const OUString& ServiceSpecifier, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments) throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException ) { return SvxUnoDrawMSFactory::createInstanceWithArguments(ServiceSpecifier, Arguments ); } +SAL_WNOUNREACHABLE_CODE_POP + //----------------------------------------------------------------------------- ::com::sun::star::uno::Sequence< OUString > SAL_CALL SvxFmMSFactory::getAvailableServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ) {