From 67e5201cc6caee52d8e37e98a0d535c085c19cb4 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 7 Oct 2018 13:06:05 +0200 Subject: [PATCH] -Werror=catch-value= Change-Id: I58563735e6cf5004b4ac5e846885414f0c603f4c Reviewed-on: https://gerrit.libreoffice.org/61491 Tested-by: Jenkins Reviewed-by: Julien Nabet --- o3tl/qa/test-lru_map.cxx | 2 +- vcl/source/font/fontcache.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/o3tl/qa/test-lru_map.cxx b/o3tl/qa/test-lru_map.cxx index a7f9777e2c5f..f0810084b6c7 100644 --- a/o3tl/qa/test-lru_map.cxx +++ b/o3tl/qa/test-lru_map.cxx @@ -261,7 +261,7 @@ void lru_map_test::testRemoveIf() }); CPPUNIT_ASSERT(false); // not reached } - catch (limit_except) + catch (limit_except&) { // contains 7..4 CPPUNIT_ASSERT_EQUAL(size_t(4), lru.size()); diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx index 2b2e062ecea0..b8e4bec2b5ce 100644 --- a/vcl/source/font/fontcache.cxx +++ b/vcl/source/font/fontcache.cxx @@ -186,7 +186,7 @@ rtl::Reference ImplFontCache::GetFontInstance( PhysicalFont return true; }); } - catch (limit_exception) {} + catch (limit_exception&) {} } assert(pFontInstance);