unotools/source/misc/mediadescriptor.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 52350c15b37573e160f25d39565f577fc7189955 Author: Giuseppe Castagno <[email protected]> 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 <[email protected]> Reviewed-by: Giuseppe Castagno <[email protected]> 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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
