summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-10-07 13:06:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-10-07 14:43:03 +0200
commit67e5201cc6caee52d8e37e98a0d535c085c19cb4 (patch)
tree7ae2cb43cde334d75589fbdf5380e90ca10283ec
parent8a445db3bb59a3e046daa62c1a1e0e199f3977b7 (diff)
-Werror=catch-value=
Change-Id: I58563735e6cf5004b4ac5e846885414f0c603f4c Reviewed-on: https://gerrit.libreoffice.org/61491 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--o3tl/qa/test-lru_map.cxx2
-rw-r--r--vcl/source/font/fontcache.cxx2
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<LogicalFontInstance> ImplFontCache::GetFontInstance( PhysicalFont
return true;
});
}
- catch (limit_exception) {}
+ catch (limit_exception&) {}
}
assert(pFontInstance);