diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 10:57:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 10:57:56 +0100 |
commit | 9b213c11969a753c2a6aef5c4ab797b26992b71f (patch) | |
tree | e5408a29b8a786278fffb6ea48a00dc297c3014f /ucb | |
parent | 41df2005d23d0304ddec397a287c25d2cf245fe2 (diff) |
catch by const reference
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucb.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index 4124c8c6ec71..6c6946bbe03b 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -204,7 +204,7 @@ bool createContentProviderData( "Error getting item value!" ); } } - catch (container::NoSuchElementException &) + catch (const container::NoSuchElementException&) { return false; } @@ -408,7 +408,7 @@ UniversalContentBroker::registerContentProvider( { aIt = m_aProviders.find(Scheme); } - catch (IllegalArgumentException const &) + catch (const IllegalArgumentException&) { return 0; //@@@ } @@ -422,7 +422,7 @@ UniversalContentBroker::registerContentProvider( { m_aProviders.add(Scheme, aList, false); } - catch (IllegalArgumentException const &) + catch (const IllegalArgumentException&) { return 0; //@@@ } @@ -454,7 +454,7 @@ void SAL_CALL UniversalContentBroker::deregisterContentProvider( { aMapIt = m_aProviders.find(Scheme); } - catch (IllegalArgumentException const &) + catch (const IllegalArgumentException&) { return; //@@@ } @@ -905,7 +905,7 @@ bool UniversalContentBroker::getContentProviderData( rListToFill.push_back( aInfo ); } - catch ( container::NoSuchElementException& ) + catch (const container::NoSuchElementException&) { // getByHierarchicalName OSL_FAIL( "UniversalContentBroker::getContentProviderData - " @@ -914,12 +914,12 @@ bool UniversalContentBroker::getContentProviderData( } } } - catch ( uno::RuntimeException& ) + catch (const uno::RuntimeException&) { OSL_FAIL( "UniversalContentBroker::getContentProviderData - caught RuntimeException!" ); return false; } - catch ( uno::Exception& ) + catch (const uno::Exception&) { // createInstance, createInstanceWithArguments |