diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-09 02:56:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-09 09:59:02 +0900 |
commit | 9262039e908b3ea897180bc723d947d3d7546d4e (patch) | |
tree | 0937618fd39b4d73e770664fae96166304df7d68 /editeng | |
parent | e89c99ce5e5474173d354778b531f2dff8eff25e (diff) |
catch exception by constant reference
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 4 | ||||
-rw-r--r-- | editeng/source/items/numitem.cxx | 6 | ||||
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 10 | ||||
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 2 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 2 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtimp.cxx | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index cdf29dee1be1..addb3f630a68 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1956,7 +1956,7 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) uno::Sequence < uno::Any > aSeq; uno::Any aNew; try { aNew = xConverter->convertTo( rVal, ::getCppuType((const uno::Sequence < uno::Any >*)0) ); } - catch (uno::Exception&) {} + catch (const uno::Exception&) {} aNew >>= aSeq; if ( aSeq.getLength() == 4 ) @@ -2754,7 +2754,7 @@ bool SvxBoxInfoItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) uno::Any aNew; uno::Sequence < uno::Any > aSeq; try { aNew = xConverter->convertTo( rVal, ::getCppuType((const uno::Sequence < uno::Any >*)0) ); } - catch (uno::Exception&) {} + catch (const uno::Exception&) {} if( (aNew >>= aSeq) && aSeq.getLength() == 4 ) { diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 6939f2b94458..8f71ff238b11 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -82,7 +82,7 @@ void lcl_getFormatter(com::sun::star::uno::Reference<com::sun::star::text::XNumb DBG_ASSERT(xRet.is(), "service missing: \"com.sun.star.text.DefaultNumberingProvider\""); _xFormatter = Reference<XNumberingFormatter> (xRet, UNO_QUERY); } - catch(Exception& ) + catch(const Exception&) { } } @@ -147,7 +147,7 @@ String SvxNumberType::GetNumStr( sal_uLong nNo, const Locale& rLocale ) const { aTmpStr = xFormatter->makeNumberingString( aProperties, rLocale ); } - catch(Exception&) + catch(const Exception&) { } } @@ -937,7 +937,7 @@ bool SvxNumBulletItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 pNumRule = pNewRule; return true; } - catch(lang::IllegalArgumentException&) + catch(const lang::IllegalArgumentException&) { } } diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index f044d6aca16c..8cbeb1e7ca7c 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2099,15 +2099,15 @@ void SvxAutoCorrectLanguageLists::LoadXMLExceptList_Imp( { xParser->parseStream( aParserInput ); } - catch( xml::sax::SAXParseException& ) + catch( const xml::sax::SAXParseException& ) { // re throw ? } - catch( xml::sax::SAXException& ) + catch( const xml::sax::SAXException& ) { // re throw ? } - catch( io::IOException& ) + catch( const io::IOException& ) { // re throw ? } @@ -2226,7 +2226,7 @@ SvxAutocorrWordList* SvxAutoCorrectLanguageLists::LoadAutocorrWordList() xParser->parseStream( aParserInput ); } } - catch ( uno::Exception& ) + catch ( const uno::Exception& ) { } @@ -2650,7 +2650,7 @@ sal_Bool SvxAutoCorrectLanguageLists::PutText( const String& rShort, delete pNew; } } - catch ( uno::Exception& ) + catch ( const uno::Exception& ) { } diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index 3ac90384e08c..db37c0573d8d 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -1124,7 +1124,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard() DictionaryType_POSITIVE, linguistic::GetWritableDictionaryURL( aDicName ) ); } - catch(com::sun::star::uno::Exception &) + catch(const com::sun::star::uno::Exception &) { } diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index a64e759fde8a..c2763b37a89e 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -471,7 +471,7 @@ void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& } while( 0 ); } - catch( uno::Exception& ) + catch( const uno::Exception& ) { OSL_FAIL("exception during xml export"); } diff --git a/editeng/source/xml/xmltxtimp.cxx b/editeng/source/xml/xmltxtimp.cxx index 2a7e3873fb3d..e73f8e87654a 100644 --- a/editeng/source/xml/xmltxtimp.cxx +++ b/editeng/source/xml/xmltxtimp.cxx @@ -235,7 +235,7 @@ void SvxReadXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& r } while(0); } - catch( uno::Exception& ) + catch( const uno::Exception& ) { } } |