[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann sbergman at redhat.com
Tue Jun 27 15:35:41 UTC 2017


 sal/osl/unx/file_url.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 56b27025d50bb32f7ccc458d3b6a562a9c304f29
Author: Stephan Bergmann <sbergman at 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;
     }


More information about the Libreoffice-commits mailing list