summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-27 17:34:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-27 17:34:43 +0200
commit56b27025d50bb32f7ccc458d3b6a562a9c304f29 (patch)
tree7e28c4b28b06fbfab56af7dac0a059f619efcfd5
parentaf9664f03bbe343c40150040d3f17f2e233a019f (diff)
-Werror=catch-value= (GCC 8)
("error: catching polymorphic type ‘class std::length_error’ by value") Change-Id: I56398642709f5f14c17b0b2928ae06d8fea0a13b
-rw-r--r--sal/osl/unx/file_url.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}