From 849f7d1484167111f34e2da931fc7b6e57eb1b25 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 4 Sep 2013 14:25:23 +0300 Subject: [PATCH] WaE: unreachable code Change-Id: I65158d7f8f632fb153adc1a4560de25ed1be0810 --- svx/source/form/fmdmod.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ) {