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

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Sat Nov 21 10:36:34 UTC 2020


 sfx2/source/doc/docfile.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit d8c92ff32eb15faba3384ccc078cd90caa3801b4
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Nov 16 00:43:37 2020 +0000
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Sat Nov 21 11:35:49 2020 +0100

    Avoid unused parameter 'pImpl'
    
    Change-Id: I8dd30ed3ffffa0e5340b32ce4399dd05cc57e2b6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105962
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106258
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 488f7ccbbbfc..7a1bf5a7f2c9 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3624,10 +3624,12 @@ OUString GetLogicBase(std::unique_ptr<SfxMedium_Impl> const & pImpl)
 {
     OUString aLogicBase;
 
-// In a sandboxed environment we don't want to attempt to create temporary files in the same
-// directory where the user has selected an output file to be stored. The sandboxed process has
-// permission only to create the specifically named output file in that directory.
-#if !HAVE_FEATURE_MACOSX_SANDBOX
+#if HAVE_FEATURE_MACOSX_SANDBOX
+    // In a sandboxed environment we don't want to attempt to create temporary files in the same
+    // directory where the user has selected an output file to be stored. The sandboxed process has
+    // permission only to create the specifically named output file in that directory.
+    (void) pImpl;
+#else
 
     if (comphelper::isFileUrl(pImpl->m_aLogicName) && !pImpl->m_pInStream)
     {


More information about the Libreoffice-commits mailing list