summaryrefslogtreecommitdiff
path: root/ucb/source/cacher
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-17 21:49:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 11:01:54 +0100
commitc4ed8d454818971d959af7a80a986b7691bf43fb (patch)
treec68945eec35c8e8eed648f04ad141026685cb535 /ucb/source/cacher
parent051e6eea5a9363309883c6a92b77210e4284c316 (diff)
catch by const reference
Diffstat (limited to 'ucb/source/cacher')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index f927c658d426..c6005bb3b32c 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -112,10 +112,10 @@ if ( m_bLastCachedReadWasNull && rValue.hasValue() ) \
const Type * >( 0 ) ) ); \
m_bLastCachedReadWasNull = !( aConvAny >>= aRet ); \
} \
- catch ( IllegalArgumentException ) \
+ catch (const IllegalArgumentException&) \
{ \
} \
- catch ( CannotConvertException ) \
+ catch (const CannotConvertException&) \
{ \
} \
} \
@@ -327,7 +327,7 @@ const OUString& SAL_CALL CachedContentResultSet::CCRS_Cache
return (* reinterpret_cast< const OUString * >
(getRowAny( nRow ).getValue() ));
}
- catch( SQLException )
+ catch(const SQLException&)
{
throw RuntimeException();
}
@@ -350,7 +350,7 @@ const Reference< XContentIdentifier >& SAL_CALL CachedContentResultSet::CCRS_Cac
return (* reinterpret_cast< const Reference< XContentIdentifier > * >
(getRowAny( nRow ).getValue() ));
}
- catch( SQLException )
+ catch(const SQLException&)
{
throw RuntimeException();
}
@@ -373,7 +373,7 @@ const Reference< XContent >& SAL_CALL CachedContentResultSet::CCRS_Cache
return (* reinterpret_cast< const Reference< XContent > * >
(getRowAny( nRow ).getValue() ));
}
- catch( SQLException )
+ catch (const SQLException&)
{
throw RuntimeException();
}
@@ -792,7 +792,7 @@ sal_Bool SAL_CALL CachedContentResultSet
return bValid;
}
}
- catch( SQLException& rEx )
+ catch (const SQLException& rEx)
{
if( !bAfterLastApplied && !bAfterLast && nRow > nLastAppliedPos && impl_isForwardOnly() )
{
@@ -1452,7 +1452,7 @@ sal_Bool SAL_CALL CachedContentResultSet
{
bValid = m_xResultSetOrigin->absolute( row );
}
- catch (ResultSetException &)
+ catch (const ResultSetException&)
{
throw;
}