summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/nativenumberwrapper.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:34:57 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-08 03:35:43 +0900
commitff580eb39b46646309feba447f6bf485124db6b1 (patch)
tree5dbea85aed84589c0c1bd9859f487b9af0df7558 /unotools/source/i18n/nativenumberwrapper.cxx
parent5b031b4ea68df5ca210a5631c801414b476d8094 (diff)
catch exception by constant reference
Diffstat (limited to 'unotools/source/i18n/nativenumberwrapper.cxx')
-rw-r--r--unotools/source/i18n/nativenumberwrapper.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx
index 902eebb752d8..9f831fd4e5de 100644
--- a/unotools/source/i18n/nativenumberwrapper.cxx
+++ b/unotools/source/i18n/nativenumberwrapper.cxx
@@ -62,9 +62,8 @@ NativeNumberWrapper::getNativeNumberString(
if ( xNNS.is() )
return xNNS->getNativeNumberString( rNumberString, rLocale, nNativeNumberMode );
}
- catch ( uno::Exception& e )
+ catch ( const uno::Exception& )
{
- (void)e;
DBG_ERRORFILE( "getNativeNumberString: Exception caught!" );
}
return ::rtl::OUString();
@@ -81,9 +80,8 @@ NativeNumberWrapper::isValidNatNum(
if ( xNNS.is() )
return xNNS->isValidNatNum( rLocale, nNativeNumberMode );
}
- catch ( uno::Exception& e )
+ catch ( const uno::Exception& )
{
- (void)e;
DBG_ERRORFILE( "isValidNatNum: Exception caught!" );
}
return sal_False;
@@ -100,9 +98,8 @@ NativeNumberWrapper::convertToXmlAttributes(
if ( xNNS.is() )
return xNNS->convertToXmlAttributes( rLocale, nNativeNumberMode );
}
- catch ( uno::Exception& e )
+ catch ( const uno::Exception& )
{
- (void)e;
DBG_ERRORFILE( "convertToXmlAttributes: Exception caught!" );
}
return i18n::NativeNumberXmlAttributes();
@@ -118,9 +115,8 @@ NativeNumberWrapper::convertFromXmlAttributes(
if ( xNNS.is() )
return xNNS->convertFromXmlAttributes( rAttr );
}
- catch ( uno::Exception& e )
+ catch ( const uno::Exception& )
{
- (void)e;
DBG_ERRORFILE( "convertFromXmlAttributes: Exception caught!" );
}
return 0;