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

Giuseppe Castagno giuseppe.castagno at acca-esse.eu
Thu Oct 20 17:44:02 UTC 2016


 unotools/source/misc/mediadescriptor.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 52350c15b37573e160f25d39565f577fc7189955
Author: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Date:   Wed Oct 19 09:51:40 2016 +0200

    tdf#103274 (11): Add default XCommandEnvironment reference
    
    Change-Id: I8145e167ef58d83666c2f18adf869a30c859ee8f
    Reviewed-on: https://gerrit.libreoffice.org/30036
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>

diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx
index e123474..2813a8d 100644
--- a/unotools/source/misc/mediadescriptor.cxx
+++ b/unotools/source/misc/mediadescriptor.cxx
@@ -21,6 +21,7 @@
 #include <sal/log.hxx>
 #include <unotools/mediadescriptor.hxx>
 #include <unotools/securityoptions.hxx>
+#include <unotools/ucbhelper.hxx>
 #include <comphelper/namedvaluecollection.hxx>
 #include <comphelper/stillreadwriteinteraction.hxx>
 
@@ -376,7 +377,9 @@ bool MediaDescriptor::isStreamReadOnly() const
                 bReadOnly = true;
             else
             {
-                ::ucbhelper::Content aContent(xContent, css::uno::Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext());
+                ::ucbhelper::Content aContent(xContent,
+                                              utl::UCBContentHelper::getDefaultCommandEnvironment(),
+                                              comphelper::getProcessComponentContext());
                 aContent.getPropertyValue(CONTENTPROP_ISREADONLY) >>= bReadOnly;
             }
         }


More information about the Libreoffice-commits mailing list