summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-22 11:51:59 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-22 12:50:49 +0200
commit8d52cd0b327e90b555c6beaf29219ba011cc7244 (patch)
tree386f11990fcd74d9e2df2694e20f43fb5f469153
parent4f51d28a6d5412e605ccf9356b3b11bb51553e0e (diff)
cppcheck: Exception should be caught by reference
Change-Id: Id3d49f976fc40d460163f43f567b3e997d1cd58e
-rw-r--r--sw/source/core/access/accdoc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
index bb34b83bcea0..b3016af0cac1 100644
--- a/sw/source/core/access/accdoc.cxx
+++ b/sw/source/core/access/accdoc.cxx
@@ -189,7 +189,7 @@ sal_Int32 SAL_CALL SwAccessibleDocumentBase::getAccessibleIndexInParent (void)
if( xAcc->getAccessibleChild( i ) == xThis )
return i;
}
- catch(::com::sun::star::lang::IndexOutOfBoundsException e)
+ catch(::com::sun::star::lang::IndexOutOfBoundsException)
{
return -1L;
}
@@ -253,7 +253,7 @@ awt::Rectangle SAL_CALL SwAccessibleDocumentBase::getBounds()
return aBox;
}
- catch(::com::sun::star::lang::IndexOutOfBoundsException e)
+ catch(::com::sun::star::lang::IndexOutOfBoundsException)
{
return awt::Rectangle();
}