[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 20 16:17:59 UTC 2018


 sfx2/source/appl/sfxhelp.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0202b472d8a0555e1750fb0d13acf469f63f27cc
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Dec 20 17:17:25 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Dec 20 17:17:25 2018 +0100

    Silence -Werror=shadow
    
    Change-Id: Ie1fcda19141a12dfe2b965d88e16c85cc2a64cb2

diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 38ba4fd9ef5e..aea69c0af85e 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -872,8 +872,8 @@ bool rewriteFlatpakHelpRootUrl(OUString * helpRootUrl) {
             path = path.copy(0, i1) + "/runtime/org.libreoffice.LibreOffice.Help/"
                 + path.copy(i2, i3 - i2) + sha + path.copy(i4);
             // Turn <path> into a file URL:
-            OUString url;
-            err = osl::FileBase::getFileURLFromSystemPath(path, url);
+            OUString url_;
+            err = osl::FileBase::getFileURLFromSystemPath(path, url_);
             if (err != osl::FileBase::E_None) {
                 SAL_WARN(
                     "sfx.appl",
@@ -881,7 +881,7 @@ bool rewriteFlatpakHelpRootUrl(OUString * helpRootUrl) {
                         << err);
                 throw Failure();
             }
-            return url;
+            return url_;
         }();
         *helpRootUrl = url;
         return true;


More information about the Libreoffice-commits mailing list