Kaydet (Commit) 17b94a61 authored tarafından Giuseppe Castagno's avatar Giuseppe Castagno

tdf#103274 (9): Add default XCommandEnvironment reference

Change-Id: If1b7bc913e392f511caf0684baa5bc3ce2c6933d
Reviewed-on: https://gerrit.libreoffice.org/30035Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>
üst 99ee085d
......@@ -24,6 +24,7 @@
#include <osl/diagnose.h>
#include <rtl/tencinfo.h>
#include <ucbhelper/content.hxx>
#include <unotools/ucbhelper.hxx>
#include <DirectoryStream.hxx>
#include <DocumentHandler.hxx>
......@@ -132,7 +133,9 @@ throw(css::uno::RuntimeException, std::exception)
*/
if (xContent.is())
{
ucbhelper::Content aContent(xContent, Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext());
ucbhelper::Content aContent(xContent,
utl::UCBContentHelper::getDefaultCommandEnvironment(),
comphelper::getProcessComponentContext());
try
{
if (aContent.isFolder())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment