[Libreoffice-commits] core.git: fpicker/source writerfilter/source
Stephan Bergmann
sbergman at redhat.com
Wed Jul 24 00:32:14 PDT 2013
fpicker/source/win32/filepicker/VistaFilePicker.cxx | 7 ++++---
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 570fe620e9d573cfc9fc260e6518563c6a6c1a3c
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jul 24 09:31:41 2013 +0200
Keep passing XComponentContext into officecfg:: wrapper fns, where available
Change-Id: I10448edd04c6c7e7f03c539bf85aba4e00c7e311
diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx
index b7f7d83..20eff44 100644
--- a/fpicker/source/win32/filepicker/VistaFilePicker.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePicker.cxx
@@ -218,12 +218,13 @@ void SAL_CALL VistaFilePicker::setDisplayDirectory(const OUString& sDirectory)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException )
{
- bool bChanged = officecfg::Office::Common::Path::Info::WorkPathChanged::get();
-
+ bool bChanged = officecfg::Office::Common::Path::Info::WorkPathChanged::get(
+ comphelper::getComponentContext(m_xSMGR));
if (bChanged )
{
boost::shared_ptr< comphelper::ConfigurationChanges > batch(
- comphelper::ConfigurationChanges::create());
+ comphelper::ConfigurationChanges::create(
+ comphelper::getComponentContext(m_xSMGR)));
officecfg::Office::Common::Path::Info::WorkPathChanged::set(
false, batch);
batch->commit();
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 9427e60..c85f0aa 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -189,7 +189,7 @@ DomainMapper_Impl::DomainMapper_Impl(
getTableManager( ).setHandler(m_pTableHandler);
getTableManager( ).startLevel();
- m_bUsingEnhancedFields = officecfg::Office::Common::Filter::Microsoft::Import::ImportWWFieldsAsEnhancedFields::get();
+ m_bUsingEnhancedFields = officecfg::Office::Common::Filter::Microsoft::Import::ImportWWFieldsAsEnhancedFields::get(m_xComponentContext);
m_pSdtHelper = new SdtHelper(*this);
More information about the Libreoffice-commits
mailing list