From e1a1091d0ae61ba46c6d063a92db0b7d1ce65942 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 24 Aug 2011 11:22:56 +0900 Subject: catch ignored exceptions by const reference --- basic/source/classes/sbunoobj.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'basic/source/classes/sbunoobj.cxx') diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index e655050e3606..c8ccefa3cfff 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -1230,7 +1230,7 @@ static Any implRekMultiDimArrayToSequence( SbxDimArray* pArray, StarBASIC::Error( ERRCODE_BASIC_EXCEPTION, implGetExceptionMsg( ::cppu::getCaughtException() ) ); } - catch (IndexOutOfBoundsException&) + catch (const IndexOutOfBoundsException&) { StarBASIC::Error( SbERR_OUT_OF_RANGE ); } @@ -1440,7 +1440,7 @@ Any sbxToUnoValue( SbxVariable* pVar, const Type& rType, Property* pUnoProperty StarBASIC::Error( ERRCODE_BASIC_EXCEPTION, implGetExceptionMsg( ::cppu::getCaughtException() ) ); } - catch (IndexOutOfBoundsException&) + catch (const IndexOutOfBoundsException&) { StarBASIC::Error( SbERR_OUT_OF_RANGE ); } @@ -3313,8 +3313,8 @@ getTypeDescriptorEnumeration( const ::rtl::OUString& sSearchRoot, xEnum = xTypeEnumAccess->createTypeDescriptionEnumeration( sSearchRoot, types, depth ); } - catch( NoSuchTypeNameException& /*nstne*/ ) {} - catch( InvalidTypeNameException& /*nstne*/ ) {} + catch(const NoSuchTypeNameException& /*nstne*/ ) {} + catch(const InvalidTypeNameException& /*nstne*/ ) {} } return xEnum; } @@ -4701,7 +4701,7 @@ void disposeComVariablesForBasic( StarBASIC* pBasic ) Reference< XComponent > xComponent( (*itCRV).get(), UNO_QUERY_THROW ); xComponent->dispose(); } - catch( Exception& ) + catch(const Exception& ) {} } -- cgit