From 570fe620e9d573cfc9fc260e6518563c6a6c1a3c Mon Sep 17 00:00:00 2001
From: Stephan Bergmann <sbergman@redhat.com>
Date: Wed, 24 Jul 2013 09:31:41 +0200
Subject: Keep passing XComponentContext into officecfg:: wrapper fns, where
 available

Change-Id: I10448edd04c6c7e7f03c539bf85aba4e00c7e311
---
 fpicker/source/win32/filepicker/VistaFilePicker.cxx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'fpicker')

diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx
index b7f7d8332dda..20eff44549e3 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();
-- 
cgit