[Libreoffice-commits] .: unotools/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Apr 15 06:09:36 PDT 2011


 unotools/source/i18n/charclass.cxx |   44 ++++++++++++++++++-------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

New commits:
commit e1629f12fe8531d3a81aa8b37b8f35ae3136404f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 14 09:29:52 2011 +0100

    catch by const reference

diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx
index 647c363..c561c22 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" );


More information about the Libreoffice-commits mailing list