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

Giuseppe Castagno giuseppe.castagno at acca-esse.eu
Wed Oct 19 10:44:37 UTC 2016


 writerperfect/source/impress/KeynoteImportFilter.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 17b94a616d63759294a9530dca5139972172aadf
Author: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Date:   Wed Oct 19 09:25:14 2016 +0200

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

diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx
index 1547d1d..cf274c8 100644
--- a/writerperfect/source/impress/KeynoteImportFilter.cxx
+++ b/writerperfect/source/impress/KeynoteImportFilter.cxx
@@ -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())


More information about the Libreoffice-commits mailing list