summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 00:03:52 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-14 01:31:17 +0900
commit520891d058f9e936b9b8afb490b5a26c156008ef (patch)
tree6cb8ebad42c3504cb3e26249ba3458afb02a9922 /framework/source/fwi
parent4c1c531435e1bdb151d45626648486062012cbaa (diff)
catch exception by constant reference
Diffstat (limited to 'framework/source/fwi')
-rw-r--r--framework/source/fwi/helper/mischelper.cxx9
-rw-r--r--framework/source/fwi/jobs/configaccess.cxx2
-rw-r--r--framework/source/fwi/uielement/constitemcontainer.cxx4
-rw-r--r--framework/source/fwi/uielement/itemcontainer.cxx2
-rw-r--r--framework/source/fwi/uielement/rootitemcontainer.cxx4
5 files changed, 10 insertions, 11 deletions
diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx
index efba9c971601..e1f139c31e8a 100644
--- a/framework/source/fwi/helper/mischelper.cxx
+++ b/framework/source/fwi/helper/mischelper.cxx
@@ -66,9 +66,8 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.LanguageGuessing")) ),
uno::UNO_QUERY );
}
- catch (uno::Exception &r)
+ catch (const uno::Exception &)
{
- (void) r;
DBG_ASSERT( 0, "failed to get language guessing component" );
}
}
@@ -101,7 +100,7 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues
{
_rModuleIdentifier = xModuleManager->identify( _xFrame );
}
- catch( Exception& )
+ catch( const Exception& )
{
}
}
@@ -112,7 +111,7 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues
xNameAccess->getByName( _rModuleIdentifier ) >>= _xUICommandLabels;
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
}
@@ -142,7 +141,7 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues
aLabel = aStr;
}
}
- catch ( com::sun::star::uno::Exception& )
+ catch ( const com::sun::star::uno::Exception& )
{
}
}
diff --git a/framework/source/fwi/jobs/configaccess.cxx b/framework/source/fwi/jobs/configaccess.cxx
index 97d290ef95d5..f39bda8e21d9 100644
--- a/framework/source/fwi/jobs/configaccess.cxx
+++ b/framework/source/fwi/jobs/configaccess.cxx
@@ -168,7 +168,7 @@ void ConfigAccess::open( /*IN*/ EOpenMode eMode )
if (eMode==E_READWRITE)
m_xConfig = xConfigProvider->createInstanceWithArguments(SERVICENAME_CFGUPDATEACCESS, lParams);
}
- catch(css::uno::Exception& ex)
+ catch(const css::uno::Exception& ex)
{
(void) ex; // avoid warning
LOG_WARNING("open config ...", U2B(ex.Message))
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx
index 01631ef6bb81..ab61954b90da 100644
--- a/framework/source/fwi/uielement/constitemcontainer.cxx
+++ b/framework/source/fwi/uielement/constitemcontainer.cxx
@@ -167,7 +167,7 @@ ConstItemContainer::ConstItemContainer( const Reference< XIndexAccess >& rSource
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "UIName" ))) >>= m_aUIName;
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -213,7 +213,7 @@ ConstItemContainer::ConstItemContainer( const Reference< XIndexAccess >& rSource
}
}
}
- catch ( IndexOutOfBoundsException& )
+ catch ( const IndexOutOfBoundsException& )
{
}
}
diff --git a/framework/source/fwi/uielement/itemcontainer.cxx b/framework/source/fwi/uielement/itemcontainer.cxx
index c0332a397675..6e0dce68852d 100644
--- a/framework/source/fwi/uielement/itemcontainer.cxx
+++ b/framework/source/fwi/uielement/itemcontainer.cxx
@@ -96,7 +96,7 @@ ItemContainer::ItemContainer( const Reference< XIndexAccess >& rSourceContainer,
}
}
}
- catch ( IndexOutOfBoundsException& )
+ catch ( const IndexOutOfBoundsException& )
{
}
}
diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx
index ebad04f97016..667850693342 100644
--- a/framework/source/fwi/uielement/rootitemcontainer.cxx
+++ b/framework/source/fwi/uielement/rootitemcontainer.cxx
@@ -108,7 +108,7 @@ RootItemContainer::RootItemContainer( const Reference< XIndexAccess >& rSourceCo
xPropSet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "UIName" ))) >>= m_aUIName;
}
}
- catch ( Exception& )
+ catch ( const Exception& )
{
}
@@ -141,7 +141,7 @@ RootItemContainer::RootItemContainer( const Reference< XIndexAccess >& rSourceCo
}
}
}
- catch ( IndexOutOfBoundsException& )
+ catch ( const IndexOutOfBoundsException& )
{
}
}