From eddc7f6846f5bd78ba8f4913d83b66f646fe09cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 5 Oct 2011 16:30:08 +0100 Subject: [PATCH] WaE: unused variables --- writerfilter/source/dmapper/OLEHandler.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/writerfilter/source/dmapper/OLEHandler.cxx b/writerfilter/source/dmapper/OLEHandler.cxx index 1e89825550f0..907e4a760b86 100644 --- a/writerfilter/source/dmapper/OLEHandler.cxx +++ b/writerfilter/source/dmapper/OLEHandler.cxx @@ -127,6 +127,8 @@ void OLEHandler::lcl_attribute(Id rName, Value & rVal) #if DEBUG clog << "Exception in OLE Handler: "; clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl; +#else + (void)e; #endif } } @@ -176,6 +178,8 @@ void OLEHandler::lcl_sprm(Sprm & rSprm) #if DEBUG clog << "Exception in OLE Handler: "; clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl; +#else + (void)e; #endif } } @@ -230,9 +234,8 @@ void OLEHandler::lcl_sprm(Sprm & rSprm) uno::Reference< lang::XComponent > xComp( xEmbeddedResolver, uno::UNO_QUERY_THROW ); xComp->dispose(); } - catch( const uno::Exception& rEx) + catch( const uno::Exception& ) { - (void)rEx; OSL_FAIL("exception in OLEHandler::createOLEObject"); } return sRet;