From 76fa265895f3a5a411e08627adc177811a548ffd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 14 Apr 2011 09:29:52 +0100 Subject: catch by const reference --- unotools/source/i18n/charclass.cxx | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'unotools/source/i18n/charclass.cxx') diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index 5c024bcc1c92..d4a9be17929a 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -61,7 +61,7 @@ CharClass::CharClass( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( CHARCLASS_SERVICENAME ) ) ), uno::UNO_QUERY ); } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "CharClass ctor: Exception caught!" ); } @@ -101,7 +101,7 @@ void CharClass::getComponentInstance() x >>= xCC; } } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getComponentInstance: Exception caught!" ); } @@ -186,7 +186,7 @@ sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isAlpha: Exception caught!" ); return sal_False; @@ -203,7 +203,7 @@ sal_Bool CharClass::isAlpha( const String& rStr ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isAlpha: Exception caught!" ); return sal_False; @@ -225,7 +225,7 @@ sal_Bool CharClass::isLetter( const String& rStr, xub_StrLen nPos ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isLetter: Exception caught!" ); return sal_False; @@ -242,7 +242,7 @@ sal_Bool CharClass::isLetter( const String& rStr ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isLetter: Exception caught!" ); return sal_False; @@ -264,7 +264,7 @@ sal_Bool CharClass::isDigit( const String& rStr, xub_StrLen nPos ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isDigit: Exception caught!" ); return sal_False; @@ -281,7 +281,7 @@ sal_Bool CharClass::isNumeric( const String& rStr ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isNumeric: Exception caught!" ); return sal_False; @@ -303,7 +303,7 @@ sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isAlphaNumeric: Exception caught!" ); return sal_False; @@ -320,7 +320,7 @@ sal_Bool CharClass::isAlphaNumeric( const String& rStr ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isAlphaNumeric: Exception caught!" ); return sal_False; @@ -342,7 +342,7 @@ sal_Bool CharClass::isLetterNumeric( const String& rStr, xub_StrLen nPos ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isLetterNumeric: Exception caught!" ); return sal_False; @@ -359,7 +359,7 @@ sal_Bool CharClass::isLetterNumeric( const String& rStr ) const else return sal_False; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "isLetterNumeric: Exception caught!" ); return sal_False; @@ -388,7 +388,7 @@ String CharClass::toTitle( const String& rStr, xub_StrLen nPos, xub_StrLen nCoun else return rStr.Copy( nPos, nCount ); } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "toTitle: Exception caught!" ); return rStr.Copy( nPos, nCount ); @@ -405,7 +405,7 @@ String CharClass::toTitle( const String& rStr, xub_StrLen nPos, xub_StrLen nCoun else return rStr.copy( nPos, nCount ); } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "toUpper: Exception caught!" ); return rStr.copy( nPos, nCount ); @@ -422,7 +422,7 @@ String CharClass::toTitle( const String& rStr, xub_StrLen nPos, xub_StrLen nCoun else return rStr.copy( nPos, nCount ); } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "toLower: Exception caught!" ); return rStr.copy( nPos, nCount ); @@ -439,7 +439,7 @@ sal_Int16 CharClass::getType( const String& rStr, xub_StrLen nPos ) const else return 0; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getType: Exception caught!" ); return 0; @@ -456,7 +456,7 @@ sal_Int16 CharClass::getCharacterDirection( const String& rStr, xub_StrLen nPos else return 0; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getCharacterDirection: Exception caught!" ); return 0; @@ -473,7 +473,7 @@ sal_Int16 CharClass::getScript( const String& rStr, xub_StrLen nPos ) const else return 0; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getScript: Exception caught!" ); return 0; @@ -490,7 +490,7 @@ sal_Int32 CharClass::getCharacterType( const String& rStr, xub_StrLen nPos ) con else return 0; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getCharacterType: Exception caught!" ); return 0; @@ -507,7 +507,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str else return 0; } - catch ( Exception& ) + catch ( const Exception& ) { DBG_ERRORFILE( "getStringType: Exception caught!" ); return 0; @@ -532,7 +532,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str else return ParseResult(); } - catch ( Exception& e ) + catch ( const Exception& e ) { #ifdef DBG_UTIL ByteString aMsg( "parseAnyToken: Exception caught\n" ); @@ -564,7 +564,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str else return ParseResult(); } - catch ( Exception& e ) + catch ( const Exception& e ) { #ifdef DBG_UTIL ByteString aMsg( "parsePredefinedToken: Exception caught\n" ); -- cgit v1.2.3