diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-10-19 09:51:40 +0200 |
---|---|---|
committer | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-10-20 17:43:36 +0000 |
commit | 52350c15b37573e160f25d39565f577fc7189955 (patch) | |
tree | c122902a582ef4e1d191a81a5fb6fed4485adc4b | |
parent | 27fcf604684cb358d2dc2e550dc93d0e66d5757b (diff) |
tdf#103274 (11): Add default XCommandEnvironment reference
Change-Id: I8145e167ef58d83666c2f18adf869a30c859ee8f
Reviewed-on: https://gerrit.libreoffice.org/30036
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
-rw-r--r-- | unotools/source/misc/mediadescriptor.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index e123474a1abf..2813a8d32f0d 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; } } |