more catch by reference

Change-Id: I2db9f94a517f814ef0854190e6f1194501070409
This commit is contained in:
Caolán McNamara
2014-11-14 17:21:20 +00:00
parent 7a71065b87
commit 0b3766645d
3 changed files with 5 additions and 5 deletions

View File

@@ -979,12 +979,12 @@ uno::Reference<XAccessible> AccessibleDrawDocumentView::GetSelAccContextInTable(
}
}
}
catch ( lang::IndexOutOfBoundsException )
catch (const lang::IndexOutOfBoundsException&)
{
uno::Reference<XAccessible> xEmpty;
return xEmpty;
}
catch ( uno::RuntimeException )
catch (const uno::RuntimeException&)
{
uno::Reference<XAccessible> xEmpty;
return xEmpty;
@@ -1014,7 +1014,7 @@ void AccessibleDrawDocumentView::UpdateAccessibleName (void)
sNewName += OUString::number(nPageNumber);
}
}
catch (beans::UnknownPropertyException&)
catch (const beans::UnknownPropertyException&)
{
}
}

View File

@@ -80,7 +80,7 @@ namespace svx
if ( xProp.is() )
xProp->getPropertyValue("IsForm") >>= bForm;
}
catch(Exception)
catch(const Exception&)
{}
AddFormat(getDescriptorFormatId(bForm));
}

View File

@@ -3765,7 +3765,7 @@ void XMLAnnotationImportContext::EndElement()
{
GetImportHelper().InsertTextContent( xTextContent );
}
catch (lang::IllegalArgumentException)
catch (const lang::IllegalArgumentException&)
{
// ignore
}