diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-24 11:22:56 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-24 11:30:17 +0900 |
commit | e1a1091d0ae61ba46c6d063a92db0b7d1ce65942 (patch) | |
tree | 5cd7f5ba6ad9fc1e859263332b4f96167ac927ce /basic/source/classes/sbunoobj.cxx | |
parent | 8dfa38c418125ad880e9d4b2a968f0f1778d6de4 (diff) |
catch ignored exceptions by const reference
Diffstat (limited to 'basic/source/classes/sbunoobj.cxx')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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& ) {} } |