sal/osl/unx/file_url.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 56b27025d50bb32f7ccc458d3b6a562a9c304f29 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jun 27 17:34:43 2017 +0200 -Werror=catch-value= (GCC 8) ("error: catching polymorphic type âclass std::length_errorâ by value") Change-Id: I56398642709f5f14c17b0b2928ae06d8fea0a13b diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx index e6c0ecc2a02f..865021bce770 100644 --- a/sal/osl/unx/file_url.cxx +++ b/sal/osl/unx/file_url.cxx @@ -227,7 +227,7 @@ oslFileError SAL_CALL osl_getSystemPathFromFileURL( rtl_uString *ustrFileURL, rt e = getSystemPathFromFileUrl( OUString::unacquired(&ustrFileURL), &path, true); } - catch (std::length_error) + catch (std::length_error &) { e = osl_File_E_RANGE; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits