diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-11 16:36:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-12 08:54:15 +0200 |
commit | fa394eef4017d62549599ded3a62d790bc508582 (patch) | |
tree | dc23efda2c3e260af82487c1e3046451277efa6c /test | |
parent | a267efe358cb788e0256feada268987ddbf9604f (diff) |
clang-tidy misc-throw-by-value-catch-by-reference
Change-Id: I04750771b63551fd3df522753a4ed21b8d5c42f3
Reviewed-on: https://gerrit.libreoffice.org/61680
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/unoapi_property_testers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/unoapi_property_testers.cxx b/test/source/unoapi_property_testers.cxx index 5a74443a2550..75eed2c9a70b 100644 --- a/test/source/unoapi_property_testers.cxx +++ b/test/source/unoapi_property_testers.cxx @@ -43,7 +43,7 @@ void testBooleanOptionalProperty(uno::Reference<beans::XPropertySet> const& xPro { testBooleanProperty(xPropertySet, rName); } - catch (css::beans::UnknownPropertyException /*ex*/) + catch (const css::beans::UnknownPropertyException& /*ex*/) { // ignore if the property is unknown as it is optional } @@ -192,7 +192,7 @@ void testStringOptionalProperty(uno::Reference<beans::XPropertySet> const& xProp { testStringProperty(xPropertySet, rName, rValue); } - catch (css::beans::UnknownPropertyException /*ex*/) + catch (const css::beans::UnknownPropertyException& /*ex*/) { // ignore if the property is unknown as it is optional } |