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

Matúš Kukan matus.kukan at collabora.com
Sat Mar 29 03:00:56 PDT 2014


 ucb/source/ucp/webdav/webdavprovider.cxx |    3 ++-
 ucb/source/ucp/webdav/webdavprovider.hxx |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1ab55661f3194aa78a0f95c6397d2b546775d04c
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Sat Mar 29 10:53:09 2014 +0100

    webdav: Store DAVSessionFactory again in ContentProvider.
    
    So that we use only one its instance.
    Erroneously removed in 05671c1f01c73bd3f4773c9653d95e3188657eb3.
    
    Change-Id: I714e41bf0b9af88f1bb0d8809a108370c73a9849

diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx
index 0cf92da..16684d8 100644
--- a/ucb/source/ucp/webdav/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav/webdavprovider.cxx
@@ -39,6 +39,7 @@ using namespace http_dav_ucp;
 ContentProvider::ContentProvider(
                 const uno::Reference< uno::XComponentContext >& rContext )
 : ::ucbhelper::ContentProviderImplHelper( rContext ),
+  m_xDAVSessionFactory( new DAVSessionFactory() ),
   m_pProps( 0 )
 {
 }
@@ -195,7 +196,7 @@ ContentProvider::queryContent(
     try
     {
         xContent = new ::http_dav_ucp::Content(
-                        m_xContext, this, xCanonicId, new DAVSessionFactory() );
+                        m_xContext, this, xCanonicId, m_xDAVSessionFactory );
         registerNewContent( xContent );
     }
     catch ( ucb::ContentCreationException const & )
diff --git a/ucb/source/ucp/webdav/webdavprovider.hxx b/ucb/source/ucp/webdav/webdavprovider.hxx
index caf95600..9d5c819 100644
--- a/ucb/source/ucp/webdav/webdavprovider.hxx
+++ b/ucb/source/ucp/webdav/webdavprovider.hxx
@@ -68,6 +68,7 @@ namespace http_dav_ucp {
 
 class ContentProvider : public ::ucbhelper::ContentProviderImplHelper
 {
+    rtl::Reference< DAVSessionFactory > m_xDAVSessionFactory;
     PropertyMap * m_pProps;
 
 public:


More information about the Libreoffice-commits mailing list