[Libreoffice-commits] core.git: cui/source include/sfx2 include/xmloff sc/inc sc/source sfx2/source xmloff/source

Noel Grandin noel at peralex.com
Tue Oct 27 15:36:00 UTC 2015


 cui/source/dialogs/linkdlg.cxx             |   16 ++++-----
 include/sfx2/linkmgr.hxx                   |    2 -
 include/xmloff/xmlmultiimagehelper.hxx     |    2 -
 sc/inc/global.hxx                          |    2 -
 sc/source/core/data/documen8.cxx           |   24 ++++++-------
 sc/source/core/data/global.cxx             |    3 +
 sc/source/core/tool/interpr2.cxx           |    2 -
 sc/source/filter/xml/xmlexprt.cxx          |    2 -
 sc/source/ui/app/transobj.cxx              |   13 +++----
 sc/source/ui/docshell/docfunc.cxx          |    2 -
 sc/source/ui/docshell/docsh6.cxx           |    4 +-
 sc/source/ui/docshell/documentlinkmgr.cxx  |   12 +++---
 sc/source/ui/inc/transobj.hxx              |    2 -
 sc/source/ui/navipi/content.cxx            |    4 +-
 sc/source/ui/undo/areasave.cxx             |    6 +--
 sc/source/ui/undo/undoblk3.cxx             |    2 -
 sc/source/ui/unoobj/cellsuno.cxx           |    2 -
 sc/source/ui/unoobj/linkuno.cxx            |    6 +--
 sc/source/ui/view/drawvie4.cxx             |   16 ++++-----
 sc/source/ui/view/viewfun3.cxx             |   10 ++---
 sfx2/source/appl/fileobj.cxx               |   15 ++------
 sfx2/source/appl/fileobj.hxx               |   16 ++++-----
 sfx2/source/appl/linkmgr2.cxx              |   51 +++++++++++++----------------
 xmloff/source/core/xmlmultiimagehelper.cxx |   18 +++-------
 24 files changed, 108 insertions(+), 124 deletions(-)

New commits:
commit 623f5b26ffd77041d0b06d7ce9c3b32d05625440
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Oct 27 15:12:58 2015 +0200

    don't allocate rtl::Reference or SvRef on the heap
    
    There is no point, since it's the size of a pointer anyway
    
    Found by temporarily making their 'operator new' methods
    deleted.
    
    Change-Id: I265e40ce93ad4bad08b4f0bd49db08929e44b7d6
    Reviewed-on: https://gerrit.libreoffice.org/19628
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index ee7fb1f..402e20c 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -301,7 +301,7 @@ IMPL_LINK_NOARG_TYPED(SvBaseLinksDlg, UpdateNowClickHdl, Button*, void)
 
             // first look for the entry in the array
             for( size_t i = 0; i < pLinkMgr->GetLinks().size(); ++i )
-                if( &xLink == *pLinkMgr->GetLinks()[ i ] )
+                if( xLink == pLinkMgr->GetLinks()[ i ] )
                 {
                     xLink->SetUseCache( false );
                     SetType( *xLink, aPosArr[ n ], xLink->GetUpdateMode() );
@@ -594,15 +594,15 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr )
         SvBaseLinks& rLnks = (SvBaseLinks&)pLinkMgr->GetLinks();
         for( size_t n = 0; n < rLnks.size(); ++n )
         {
-            tools::SvRef<SvBaseLink>* pLinkRef = rLnks[ n ];
-            if( !pLinkRef->Is() )
+            tools::SvRef<SvBaseLink>& rLinkRef = rLnks[ n ];
+            if( !rLinkRef.Is() )
             {
                 rLnks.erase( rLnks.begin() + n );
                 --n;
                 continue;
             }
-            if( (*pLinkRef)->IsVisible() )
-                InsertEntry( **pLinkRef );
+            if( rLinkRef->IsVisible() )
+                InsertEntry( *rLinkRef );
         }
 
         if( !rLnks.empty() )
@@ -692,12 +692,12 @@ void SvBaseLinksDlg::SetActLink( SvBaseLink * pLink )
         sal_uLong nSelect = 0;
         for( size_t n = 0; n < rLnks.size(); ++n )
         {
-            tools::SvRef<SvBaseLink>* pLinkRef = rLnks[ n ];
+            const tools::SvRef<SvBaseLink>& rLinkRef = rLnks[ n ];
             // #109573# only visible links have been inserted into the TreeListBox,
             // invisible ones have to be skipped here
-            if( (*pLinkRef)->IsVisible() )
+            if( rLinkRef->IsVisible() )
             {
-                if( pLink == *pLinkRef )
+                if( pLink == rLinkRef.get() )
                 {
                     m_pTbLinks->Select( m_pTbLinks->GetEntry( nSelect ) );
                     LinksSelectHdl( 0 );
diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx
index f0941e2..787a952 100644
--- a/include/sfx2/linkmgr.hxx
+++ b/include/sfx2/linkmgr.hxx
@@ -44,7 +44,7 @@ namespace sfx2
     // FormatID "RegisterStatusInfoId" and a string as the data container.
     // This contains the following enum.
 
-typedef std::vector<tools::SvRef<SvBaseLink>*> SvBaseLinks;
+typedef std::vector<tools::SvRef<SvBaseLink> > SvBaseLinks;
 
 typedef std::set<SvLinkSource*> SvLinkSources;
 
diff --git a/include/xmloff/xmlmultiimagehelper.hxx b/include/xmloff/xmlmultiimagehelper.hxx
index c15bdbd..c8d88b2 100644
--- a/include/xmloff/xmlmultiimagehelper.hxx
+++ b/include/xmloff/xmlmultiimagehelper.hxx
@@ -28,7 +28,7 @@
 class MultiImageImportHelper
 {
 private:
-    std::vector< SvXMLImportContextRef* >       maImplContextVector;
+    std::vector< SvXMLImportContextRef >        maImplContextVector;
     bool                                        mbSupportsMultipleContents;
 
 protected:
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index c61b209..665f066 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -542,7 +542,7 @@ public:
     SC_DLLPUBLIC static double              nScreenPPTX;
     SC_DLLPUBLIC static double              nScreenPPTY;
 
-    static tools::SvRef<ScDocShell>*   pDrawClipDocShellRef;
+    static tools::SvRef<ScDocShell>   xDrawClipDocShellRef;
 
     static sal_uInt16           nDefFontHeight;
     SC_DLLPUBLIC static sal_uInt16           nStdRowHeight;
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 81b8cda..a6aca8f 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -725,7 +725,7 @@ void ScDocument::SaveDdeLinks(SvStream& rStream) const
     sal_uInt16 i;
     for (i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (ScDdeLink* pLink = dynamic_cast<ScDdeLink*>(pBase))
             if ( !bExport40 || pLink->GetMode() == SC_DDE_DEFAULT )
                 ++nDdeCount;
@@ -740,7 +740,7 @@ void ScDocument::SaveDdeLinks(SvStream& rStream) const
 
     for (i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (ScDdeLink* pLink = dynamic_cast<ScDdeLink*>(pBase))
         {
             if ( !bExport40 || pLink->GetMode() == SC_DDE_DEFAULT )
@@ -809,7 +809,7 @@ void ScDocument::UpdateExternalRefLinks(vcl::Window* pWin)
     std::vector<ScExternalRefLink*> aRefLinks;
     for (sal_uInt16 i = 0; i < nCount; ++i)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScExternalRefLink* pRefLink = dynamic_cast<ScExternalRefLink*>(pBase);
         if (pRefLink)
             aRefLinks.push_back(pRefLink);
@@ -891,7 +891,7 @@ void ScDocument::CopyDdeLinks( ScDocument* pDestDoc ) const
     const sfx2::SvBaseLinks& rLinks = pMgr->GetLinks();
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        const sfx2::SvBaseLink* pBase = *rLinks[i];
+        const sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (const ScDdeLink* p = dynamic_cast<const ScDdeLink*>(pBase))
         {
             ScDdeLink* pNew = new ScDdeLink(pDestDoc, *p);
@@ -919,7 +919,7 @@ ScDdeLink* lclGetDdeLink(
         if( pnDdePos ) *pnDdePos = 0;
         for( size_t nIndex = 0; nIndex < nCount; ++nIndex )
         {
-            ::sfx2::SvBaseLink* pLink = *rLinks[ nIndex ];
+            ::sfx2::SvBaseLink* pLink = rLinks[ nIndex ].get();
             if( ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>( pLink )  )
             {
                 if( (OUString(pDdeLink->GetAppl()) == rAppl) &&
@@ -946,7 +946,7 @@ ScDdeLink* lclGetDdeLink( const sfx2::LinkManager* pLinkManager, size_t nDdePos
         size_t nDdeIndex = 0;       // counts only the DDE links
         for( size_t nIndex = 0; nIndex < nCount; ++nIndex )
         {
-            ::sfx2::SvBaseLink* pLink = *rLinks[ nIndex ];
+            ::sfx2::SvBaseLink* pLink = rLinks[ nIndex ].get();
             if( ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>( pLink )  )
             {
                 if( nDdeIndex == nDdePos )
@@ -1044,7 +1044,7 @@ bool ScDocument::HasAreaLinks() const
     const ::sfx2::SvBaseLinks& rLinks = pMgr->GetLinks();
     sal_uInt16 nCount = rLinks.size();
     for (sal_uInt16 i=0; i<nCount; i++)
-        if (0 != dynamic_cast<const ScAreaLink* >((*rLinks[i]).get()))
+        if (0 != dynamic_cast<const ScAreaLink* >(rLinks[i].get()))
             return true;
 
     return false;
@@ -1059,7 +1059,7 @@ void ScDocument::UpdateAreaLinks()
     const ::sfx2::SvBaseLinks& rLinks = pMgr->GetLinks();
     for (size_t i=0; i<rLinks.size(); i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             pBase->Update();
     }
@@ -1075,7 +1075,7 @@ void ScDocument::DeleteAreaLinksOnTab( SCTAB nTab )
     sal_uInt16 nPos = 0;
     while ( nPos < rLinks.size() )
     {
-        const ::sfx2::SvBaseLink* pBase = *rLinks[nPos];
+        const ::sfx2::SvBaseLink* pBase = rLinks[nPos].get();
         const ScAreaLink* pLink = dynamic_cast<const ScAreaLink*>(pBase);
         if (pLink && pLink->GetDestArea().aStart.Tab() == nTab)
             pMgr->Remove(nPos);
@@ -1097,7 +1097,7 @@ void ScDocument::UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
     sal_uInt16 nCount = rLinks.size();
     for (sal_uInt16 i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (ScAreaLink* pLink = dynamic_cast<ScAreaLink*>(pBase))
         {
             ScRange aOutRange = pLink->GetDestArea();
@@ -1132,13 +1132,13 @@ void ScDocument::UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
         while ( nFirstIndex < nCount )
         {
             bool bFound = false;
-            ::sfx2::SvBaseLink* pFirst = *rLinks[nFirstIndex];
+            ::sfx2::SvBaseLink* pFirst = rLinks[nFirstIndex].get();
             if (ScAreaLink* pFirstLink = dynamic_cast<ScAreaLink*>(pFirst))
             {
                 ScAddress aFirstPos = pFirstLink->GetDestArea().aStart;
                 for ( sal_uInt16 nSecondIndex = nFirstIndex + 1; nSecondIndex < nCount && !bFound; ++nSecondIndex )
                 {
-                    ::sfx2::SvBaseLink* pSecond = *rLinks[nSecondIndex];
+                    ::sfx2::SvBaseLink* pSecond = rLinks[nSecondIndex].get();
                     ScAreaLink* pSecondLink = dynamic_cast<ScAreaLink*>(pSecond);
                     if (pSecondLink && pSecondLink->GetDestArea().aStart == aFirstPos)
                     {
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 46cd6bd..272ff85 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -81,8 +81,9 @@
 #include "scmod.hxx"
 #include "appoptio.hxx"
 #include "editutil.hxx"
+#include "docsh.hxx"
 
-tools::SvRef<ScDocShell>*  ScGlobal::pDrawClipDocShellRef = NULL;
+tools::SvRef<ScDocShell>  ScGlobal::xDrawClipDocShellRef;
 SvxSearchItem*  ScGlobal::pSearchItem = NULL;
 ScAutoFormat*   ScGlobal::pAutoFormat = NULL;
 LegacyFuncCollection* ScGlobal::pLegacyFuncCollection = NULL;
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index e702fc1..23c1aa9 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -2382,7 +2382,7 @@ static ScDdeLink* lcl_GetDdeLink( sfx2::LinkManager* pLinkMgr,
     size_t nCount = pLinkMgr->GetLinks().size();
     for (size_t i=0; i<nCount; i++ )
     {
-        ::sfx2::SvBaseLink* pBase = *pLinkMgr->GetLinks()[i];
+        ::sfx2::SvBaseLink* pBase = pLinkMgr->GetLinks()[i].get();
         if (ScDdeLink* pLink = dynamic_cast<ScDdeLink*>(pBase))
         {
             if ( pLink->GetAppl() == rA &&
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 4b47706..ea9401b 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -705,7 +705,7 @@ void ScXMLExport::GetAreaLinks( ScMyAreaLinksContainer& rAreaLinks )
         const sfx2::SvBaseLinks& rLinks = pDoc->GetLinkManager()->GetLinks();
         for (size_t i = 0; i < rLinks.size(); i++)
         {
-            ScAreaLink *pLink = dynamic_cast<ScAreaLink*>(&(*(*rLinks[i])));
+            ScAreaLink *pLink = dynamic_cast<ScAreaLink*>(rLinks[i].get());
             if (pLink)
             {
                 ScMyAreaLink aAreaLink;
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 1154c66..f137e65 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -730,19 +730,18 @@ void ScTransferObj::InitDocShell(bool bLimitToPageSize)
 
 SfxObjectShell* ScTransferObj::SetDrawClipDoc( bool bAnyOle )
 {
-    // update ScGlobal::pDrawClipDocShellRef
+    // update ScGlobal::xDrawClipDocShellRef
 
-    delete ScGlobal::pDrawClipDocShellRef;
+    ScGlobal::xDrawClipDocShellRef.Clear();
     if (bAnyOle)
     {
-        ScGlobal::pDrawClipDocShellRef =
-                        new ScDocShellRef(new ScDocShell(SfxModelFlags::EMBEDDED_OBJECT | SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS));      // there must be a ref
-        (*ScGlobal::pDrawClipDocShellRef)->DoInitNew();
-        return *ScGlobal::pDrawClipDocShellRef;
+        ScGlobal::xDrawClipDocShellRef = new ScDocShell(SfxModelFlags::EMBEDDED_OBJECT | SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS); // there must be a ref
+        ScGlobal::xDrawClipDocShellRef->DoInitNew();
+        return ScGlobal::xDrawClipDocShellRef.get();
     }
     else
     {
-        ScGlobal::pDrawClipDocShellRef = NULL;
+        ScGlobal::xDrawClipDocShellRef.Clear();
         return NULL;
     }
 }
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 9815276..c3e8551 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5219,7 +5219,7 @@ bool ScDocFunc::InsertAreaLink( const OUString& rFile, const OUString& rFilter,
     sal_uInt16 nLinkPos = 0;
     while (nLinkPos<nLinkCount)
     {
-        ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[nLinkPos];
+        ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[nLinkPos].get();
         ScAreaLink* pLink = dynamic_cast<ScAreaLink*>(pBase);
         if (pLink && pLink->GetDestArea().aStart == rDestRange.aStart)
         {
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index 0a01292..1e6f46c 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -353,7 +353,7 @@ void ScDocShell::UpdateLinks()
     for (size_t k=nCount; k>0; )
     {
         --k;
-        ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[k];
+        ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[k].get();
         if (ScTableLink* pTabLink = dynamic_cast<ScTableLink*>(pBase))
         {
             if (pTabLink->IsUsed())
@@ -416,7 +416,7 @@ bool ScDocShell::ReloadTabLinks()
     size_t nCount = pLinkManager->GetLinks().size();
     for (size_t i=0; i<nCount; i++ )
     {
-        ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
+        ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[i].get();
         if (ScTableLink* pTabLink = dynamic_cast<ScTableLink*>(pBase))
         {
 //			pTabLink->SetAddUndo(sal_False);		//! Undo's zusammenfassen
diff --git a/sc/source/ui/docshell/documentlinkmgr.cxx b/sc/source/ui/docshell/documentlinkmgr.cxx
index 19a8f09..6a39a34 100644
--- a/sc/source/ui/docshell/documentlinkmgr.cxx
+++ b/sc/source/ui/docshell/documentlinkmgr.cxx
@@ -100,7 +100,7 @@ bool DocumentLinkManager::idleCheckLinks()
     const sfx2::SvBaseLinks& rLinks = mpImpl->mpLinkManager->GetLinks();
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        sfx2::SvBaseLink* pBase = *rLinks[i];
+        sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>(pBase);
         if (!pDdeLink || !pDdeLink->NeedsUpdate())
             continue;
@@ -121,7 +121,7 @@ bool DocumentLinkManager::hasDdeLinks() const
     const sfx2::SvBaseLinks& rLinks = mpImpl->mpLinkManager->GetLinks();
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        sfx2::SvBaseLink* pBase = *rLinks[i];
+        sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (dynamic_cast<ScDdeLink*>(pBase))
             return true;
     }
@@ -142,7 +142,7 @@ bool DocumentLinkManager::updateDdeLinks( vcl::Window* pWin )
     bool bAny = false;
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        sfx2::SvBaseLink* pBase = *rLinks[i];
+        sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>(pBase);
         if (!pDdeLink)
             continue;
@@ -186,7 +186,7 @@ bool DocumentLinkManager::updateDdeLink( const OUString& rAppl, const OUString&
     bool bFound = false;
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>(pBase);
         if (!pDdeLink)
             continue;
@@ -212,7 +212,7 @@ size_t DocumentLinkManager::getDdeLinkCount() const
     const sfx2::SvBaseLinks& rLinks = mpImpl->mpLinkManager->GetLinks();
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>(pBase);
         if (!pDdeLink)
             continue;
@@ -231,7 +231,7 @@ void DocumentLinkManager::disconnectDdeLinks()
     const sfx2::SvBaseLinks& rLinks = mpImpl->mpLinkManager->GetLinks();
     for (size_t i = 0, n = rLinks.size(); i < n; ++i)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         ScDdeLink* pDdeLink = dynamic_cast<ScDdeLink*>(pBase);
         if (pDdeLink)
             pDdeLink->Disconnect();
diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx
index a068c74..855cc50 100644
--- a/sc/source/ui/inc/transobj.hxx
+++ b/sc/source/ui/inc/transobj.hxx
@@ -101,7 +101,7 @@ public:
 
     static SC_DLLPUBLIC ScTransferObj* GetOwnClipboard( vcl::Window* pUIWin );
 
-    static SfxObjectShell*  SetDrawClipDoc( bool bAnyOle );     // update ScGlobal::pDrawClipDocShellRef
+    static SfxObjectShell*  SetDrawClipDoc( bool bAnyOle );     // update ScGlobal::xDrawClipDocShellRef
     virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( com::sun::star::uno::RuntimeException, std::exception ) override;
     static const com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
 };
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 9b03f5b..0247cdf 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1026,7 +1026,7 @@ void ScContentTree::GetLinkNames()
     sal_uInt16 nCount = rLinks.size();
     for (sal_uInt16 i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             InsertContent( ScContentId::AREALINK, static_cast<ScAreaLink*>(pBase)->GetSource() );
 
@@ -1047,7 +1047,7 @@ const ScAreaLink* ScContentTree::GetLink( sal_uLong nIndex )
     sal_uInt16 nCount = rLinks.size();
     for (sal_uInt16 i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
         {
             if (nFound == nIndex)
diff --git a/sc/source/ui/undo/areasave.cxx b/sc/source/ui/undo/areasave.cxx
index 8c2bd5d..b8678f3 100644
--- a/sc/source/ui/undo/areasave.cxx
+++ b/sc/source/ui/undo/areasave.cxx
@@ -106,7 +106,7 @@ bool ScAreaLinkSaveCollection::IsEqual( const ScDocument* pDoc ) const
         sal_uInt16 nLinkCount = rLinks.size();
         for (sal_uInt16 i=0; i<nLinkCount; i++)
         {
-            ::sfx2::SvBaseLink* pBase = *rLinks[i];
+            ::sfx2::SvBaseLink* pBase = rLinks[i].get();
             if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             {
                 if ( nPos >= size() || !(*this)[nPos].IsEqual( *static_cast<ScAreaLink*>(pBase) ) )
@@ -127,7 +127,7 @@ static ScAreaLink* lcl_FindLink( const ::sfx2::SvBaseLinks& rLinks, const ScArea
     sal_uInt16 nLinkCount = rLinks.size();
     for (sal_uInt16 i=0; i<nLinkCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if ( dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr &&
              rSaver.IsEqualSource( *static_cast<ScAreaLink*>(pBase) ) )
         {
@@ -172,7 +172,7 @@ ScAreaLinkSaveCollection* ScAreaLinkSaveCollection::CreateFromDoc( const ScDocum
         sal_uInt16 nLinkCount = rLinks.size();
         for (sal_uInt16 i=0; i<nLinkCount; i++)
         {
-            ::sfx2::SvBaseLink* pBase = *rLinks[i];
+            ::sfx2::SvBaseLink* pBase = rLinks[i].get();
             if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             {
                 if (!pColl)
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 187127c..475cf1d 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -1482,7 +1482,7 @@ static ScAreaLink* lcl_FindAreaLink( sfx2::LinkManager* pLinkManager, const OUSt
     sal_uInt16 nCount = pLinkManager->GetLinks().size();
     for (sal_uInt16 i=0; i<nCount; i++)
     {
-        ::sfx2::SvBaseLink* pBase = *rLinks[i];
+        ::sfx2::SvBaseLink* pBase = rLinks[i].get();
         if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             if ( static_cast<ScAreaLink*>(pBase)->IsEqual( rDoc, rFlt, rOpt, rSrc, rDest ) )
                 return static_cast<ScAreaLink*>(pBase);
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 62dd374..eb3cd06 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -7682,7 +7682,7 @@ void SAL_CALL ScTableSheetObj::link( const OUString& aUrl, const OUString& aShee
             sal_uInt16 nCount = pLinkManager->GetLinks().size();
             for ( sal_uInt16 i=0; i<nCount; i++ )
             {
-                ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
+                ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[i].get();
                 if (dynamic_cast<const ScTableLink*>( pBase) !=  nullptr)
                 {
                     ScTableLink* pTabLink = static_cast<ScTableLink*>(pBase);
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index 7dcfc8d..0258478 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -115,7 +115,7 @@ ScTableLink* ScSheetLinkObj::GetLink_Impl() const
         size_t nCount = pLinkManager->GetLinks().size();
         for (size_t i=0; i<nCount; i++)
         {
-            ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
+            ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[i].get();
             if (dynamic_cast<const ScTableLink*>( pBase) !=  nullptr)
             {
                 ScTableLink* pTabLink = static_cast<ScTableLink*>(pBase);
@@ -584,7 +584,7 @@ static ScAreaLink* lcl_GetAreaLink( ScDocShell* pDocShell, size_t nPos )
         size_t nAreaCount = 0;
         for (size_t i=0; i<nTotalCount; i++)
         {
-            ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
+            ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[i].get();
             if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
             {
                 if ( nAreaCount == nPos )
@@ -1006,7 +1006,7 @@ sal_Int32 SAL_CALL ScAreaLinksObj::getCount() throw(uno::RuntimeException, std::
         size_t nTotalCount = pLinkManager->GetLinks().size();
         for (size_t i=0; i<nTotalCount; i++)
         {
-            ::sfx2::SvBaseLink* pBase = *pLinkManager->GetLinks()[i];
+            ::sfx2::SvBaseLink* pBase = pLinkManager->GetLinks()[i].get();
             if (dynamic_cast<const ScAreaLink*>( pBase) !=  nullptr)
                 ++nAreaCount;
         }
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index 26b90ad..00cdb03 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -360,13 +360,13 @@ void ScDrawView::DoCopy()
     std::vector<ScRange> aRanges;
     getChartSourceRanges(pDoc, rMarkList, aRanges);
 
-    // update ScGlobal::pDrawClipDocShellRef
+    // update ScGlobal::xDrawClipDocShellRef
     ScDrawLayer::SetGlobalDrawPersist( ScTransferObj::SetDrawClipDoc(!aRanges.empty()) );
-    if (ScGlobal::pDrawClipDocShellRef)
+    if (ScGlobal::xDrawClipDocShellRef.Is())
     {
         // Copy data referenced by the chart objects to the draw clip
         // document. We need to do this before GetMarkedObjModel() below.
-        ScDocShellRef xDocSh = *ScGlobal::pDrawClipDocShellRef;
+        ScDocShellRef xDocSh = ScGlobal::xDrawClipDocShellRef;
         ScDocument& rClipDoc = xDocSh->GetDocument();
         copyChartRefDataToClipDoc(pDoc, &rClipDoc, aRanges);
     }
@@ -388,9 +388,9 @@ void ScDrawView::DoCopy()
     ScDrawTransferObj* pTransferObj = new ScDrawTransferObj( pModel, pDocSh, aObjDesc );
     uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );
 
-    if ( ScGlobal::pDrawClipDocShellRef )
+    if ( ScGlobal::xDrawClipDocShellRef.Is() )
     {
-        pTransferObj->SetDrawPersist( &(*ScGlobal::pDrawClipDocShellRef) );    // keep persist for ole objects alive
+        pTransferObj->SetDrawPersist( ScGlobal::xDrawClipDocShellRef.get() );    // keep persist for ole objects alive
     }
 
     pTransferObj->CopyToClipboard( pViewData->GetActiveWin() );     // system clipboard
@@ -403,7 +403,7 @@ uno::Reference<datatransfer::XTransferable> ScDrawView::CopyToTransferable()
     const SdrMarkList& rMarkList = GetMarkedObjectList();
     CheckOle( rMarkList, bAnyOle, bOneOle );
 
-    // update ScGlobal::pDrawClipDocShellRef
+    // update ScGlobal::xDrawClipDocShellRef
     ScDrawLayer::SetGlobalDrawPersist( ScTransferObj::SetDrawClipDoc( bAnyOle ) );
     SdrModel* pModel = GetMarkedObjModel();
     ScDrawLayer::SetGlobalDrawPersist(NULL);
@@ -424,9 +424,9 @@ uno::Reference<datatransfer::XTransferable> ScDrawView::CopyToTransferable()
     ScDrawTransferObj* pTransferObj = new ScDrawTransferObj( pModel, pDocSh, aObjDesc );
     uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );
 
-    if ( ScGlobal::pDrawClipDocShellRef )
+    if ( ScGlobal::xDrawClipDocShellRef.Is() )
     {
-        pTransferObj->SetDrawPersist( &(*ScGlobal::pDrawClipDocShellRef) );    // keep persist for ole objects alive
+        pTransferObj->SetDrawPersist( ScGlobal::xDrawClipDocShellRef.get() );    // keep persist for ole objects alive
     }
 
     return xTransferable;
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index e0f6deb..42a7c37 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -217,7 +217,7 @@ bool ScViewFunc::CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRanges, b
             if ( bSysClip && bIncludeObjects )
             {
                 bool bAnyOle = pDoc->HasOLEObjectsInArea( aRange );
-                // Update ScGlobal::pDrawClipDocShellRef.
+                // Update ScGlobal::xDrawClipDocShellRef.
                 ScDrawLayer::SetGlobalDrawPersist( ScTransferObj::SetDrawClipDoc( bAnyOle ) );
             }
 
@@ -264,9 +264,9 @@ bool ScViewFunc::CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRanges, b
 
                 ScTransferObj* pTransferObj = new ScTransferObj( pClipDoc, aObjDesc );
                 uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );
-                if ( ScGlobal::pDrawClipDocShellRef )
+                if ( ScGlobal::xDrawClipDocShellRef.Is() )
                 {
-                    SfxObjectShellRef aPersistRef( &(*ScGlobal::pDrawClipDocShellRef) );
+                    SfxObjectShellRef aPersistRef( ScGlobal::xDrawClipDocShellRef );
                     pTransferObj->SetDrawPersist( aPersistRef );// keep persist for ole objects alive
 
                 }
@@ -373,9 +373,9 @@ bool ScViewFunc::CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRanges, b
                 ScTransferObj* pTransferObj = new ScTransferObj( pDocClip.release(), aObjDesc );
                 uno::Reference<datatransfer::XTransferable> xTransferable( pTransferObj );
 
-                if ( ScGlobal::pDrawClipDocShellRef )
+                if ( ScGlobal::xDrawClipDocShellRef.Is() )
                 {
-                    SfxObjectShellRef aPersistRef( &(*ScGlobal::pDrawClipDocShellRef) );
+                    SfxObjectShellRef aPersistRef( ScGlobal::xDrawClipDocShellRef );
                     pTransferObj->SetDrawPersist( aPersistRef );    // keep persist for ole objects alive
                 }
 
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx
index 70e53b2..e3ff4da 100644
--- a/sfx2/source/appl/fileobj.cxx
+++ b/sfx2/source/appl/fileobj.cxx
@@ -48,7 +48,7 @@
 
 SvFileObject::SvFileObject()
     : nPostUserEventId(0)
-    , pDelMed(NULL)
+    , mxDelMed()
     , pOldParent(NULL)
     , nType(FILETYPE_TEXT)
     , bLoadAgain(true)
@@ -73,7 +73,6 @@ SvFileObject::~SvFileObject()
     }
     if (nPostUserEventId)
         Application::RemoveUserEvent(nPostUserEventId);
-    delete pDelMed;
 }
 
 bool SvFileObject::GetData( ::com::sun::star::uno::Any & rData,
@@ -485,22 +484,18 @@ IMPL_LINK_NOARG_TYPED( SvFileObject, LoadGrfReady_Impl, void*, void )
         if( xMed.Is() )
         {
             xMed->SetDoneLink( Link<void*,void>() );
-            pDelMed = new tools::SvRef<SfxMedium>(xMed);
+            mxDelMed = xMed;
             nPostUserEventId = Application::PostUserEvent(
-                        LINK( this, SvFileObject, DelMedium_Impl ),
-                        pDelMed);
+                        LINK( this, SvFileObject, DelMedium_Impl ));
             xMed.Clear();
         }
     }
 }
 
-IMPL_LINK_TYPED( SvFileObject, DelMedium_Impl, void*, p, void )
+IMPL_LINK_NOARG_TYPED( SvFileObject, DelMedium_Impl, void*, void )
 {
-    tools::SvRef<SfxMedium>* deleteMedium = static_cast<tools::SvRef<SfxMedium>*>(p);
     nPostUserEventId = 0;
-    assert(pDelMed == deleteMedium);
-    pDelMed = NULL;
-    delete deleteMedium;
+    mxDelMed.Clear();
 }
 
 IMPL_LINK_TYPED( SvFileObject, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, void )
diff --git a/sfx2/source/appl/fileobj.hxx b/sfx2/source/appl/fileobj.hxx
index bad1ddd..6ba78b2 100644
--- a/sfx2/source/appl/fileobj.hxx
+++ b/sfx2/source/appl/fileobj.hxx
@@ -28,14 +28,14 @@ namespace sfx2 { class FileDialogHelper; }
 
 class SvFileObject : public sfx2::SvLinkSource
 {
-    OUString                     sFileNm;
-    OUString                     sFilter;
-    OUString                     sReferer;
-    Link<const OUString&, void>  aEndEditLink;
-    tools::SvRef<SfxMedium>      xMed;
-    ImplSVEvent*                 nPostUserEventId;
-    tools::SvRef<SfxMedium>*     pDelMed;
-    VclPtr<vcl::Window>          pOldParent;
+    OUString                    sFileNm;
+    OUString                    sFilter;
+    OUString                    sReferer;
+    Link<const OUString&, void> aEndEditLink;
+    tools::SvRef<SfxMedium>     xMed;
+    ImplSVEvent*                nPostUserEventId;
+    tools::SvRef<SfxMedium>     mxDelMed;
+    VclPtr<vcl::Window>         pOldParent;
 
     sal_uInt8 nType;
 
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index a0f60fa..12a04bd 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -74,13 +74,12 @@ LinkManager::~LinkManager()
 {
     for( size_t n = 0; n < aLinkTbl.size(); ++n)
     {
-        tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ];
-        if( pTmp->Is() )
+        tools::SvRef<SvBaseLink>& rTmp = aLinkTbl[ n ];
+        if( rTmp.Is() )
         {
-            (*pTmp)->Disconnect();
-            (*pTmp)->SetLinkManager( NULL );
+            rTmp->Disconnect();
+            rTmp->SetLinkManager( NULL );
         }
-        delete pTmp;
     }
 }
 
@@ -111,19 +110,18 @@ void LinkManager::Remove( SvBaseLink *pLink )
     bool bFound = false;
     for( size_t n = 0; n < aLinkTbl.size(); )
     {
-        tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ];
-        if( pLink == *pTmp )
+        tools::SvRef<SvBaseLink>& rTmp = aLinkTbl[ n ];
+        if( pLink == rTmp.get() )
         {
-            (*pTmp)->Disconnect();
-            (*pTmp)->SetLinkManager( NULL );
-            (*pTmp).Clear();
+            rTmp->Disconnect();
+            rTmp->SetLinkManager( NULL );
+            rTmp.Clear();
             bFound = true;
         }
 
         // Remove empty ones if they exist
-        if( !pTmp->Is() )
+        if( !rTmp.Is() )
         {
-            delete pTmp;
             aLinkTbl.erase( aLinkTbl.begin() + n );
             if( bFound )
                 return ;
@@ -143,13 +141,12 @@ void LinkManager::Remove( size_t nPos, size_t nCnt )
 
         for( size_t n = nPos; n < nPos + nCnt; ++n)
         {
-            tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ];
-            if( pTmp->Is() )
+            tools::SvRef<SvBaseLink>& rTmp = aLinkTbl[ n ];
+            if( rTmp.Is() )
             {
-                (*pTmp)->Disconnect();
-                (*pTmp)->SetLinkManager( NULL );
+                rTmp->Disconnect();
+                rTmp->SetLinkManager( NULL );
             }
-            delete pTmp;
         }
         aLinkTbl.erase( aLinkTbl.begin() + nPos, aLinkTbl.begin() + nPos + nCnt );
     }
@@ -160,19 +157,17 @@ bool LinkManager::Insert( SvBaseLink* pLink )
 {
     for( size_t n = 0; n < aLinkTbl.size(); ++n )
     {
-        tools::SvRef<SvBaseLink>* pTmp = aLinkTbl[ n ];
-        if( !pTmp->Is() )
+        tools::SvRef<SvBaseLink>& rTmp = aLinkTbl[ n ];
+        if( !rTmp.Is() )
         {
-            delete pTmp;
             aLinkTbl.erase( aLinkTbl.begin() + n-- );
         }
-        else if( pLink == *pTmp )
+        else if( pLink == rTmp.get() )
             return false; // No duplicate links inserted
     }
 
-    tools::SvRef<SvBaseLink>* pTmp = new tools::SvRef<SvBaseLink>( pLink );
     pLink->SetLinkManager( this );
-    aLinkTbl.push_back( pTmp );
+    aLinkTbl.push_back( tools::SvRef<SvBaseLink>(pLink) );
     return true;
 }
 
@@ -295,13 +290,13 @@ void LinkManager::UpdateAllLinks(
     std::vector<SvBaseLink*> aTmpArr;
     for( size_t n = 0; n < aLinkTbl.size(); ++n )
     {
-        SvBaseLink* pLink = *aLinkTbl[ n ];
-        if( !pLink )
+        tools::SvRef<SvBaseLink>& rLink = aLinkTbl[ n ];
+        if( !rLink.Is() )
         {
             Remove( n-- );
             continue;
         }
-        aTmpArr.push_back( pLink );
+        aTmpArr.push_back( rLink.get() );
     }
 
     for( size_t n = 0; n < aTmpArr.size(); ++n )
@@ -311,7 +306,7 @@ void LinkManager::UpdateAllLinks(
         // search first in the array after the entry
         bool bFound = false;
         for( size_t i = 0; i < aLinkTbl.size(); ++i )
-            if( pLink == *aLinkTbl[ i ] )
+            if( pLink == aLinkTbl[ i ].get() )
             {
                 bFound = true;
                 break;
@@ -419,7 +414,7 @@ void LinkManager::ReconnectDdeLink(SfxObjectShell& rServer)
 
     for (size_t i = 0; i < n; ++i)
     {
-        ::sfx2::SvBaseLink* p = *rLinks[i];
+        ::sfx2::SvBaseLink* p = rLinks[i].get();
         OUString aType, aFile, aLink, aFilter;
         if (!GetDisplayNames(p, &aType, &aFile, &aLink, &aFilter))
             continue;
diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx
index b0607a2..9a6711f 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -76,11 +76,6 @@ MultiImageImportHelper::MultiImageImportHelper()
 
 MultiImageImportHelper::~MultiImageImportHelper()
 {
-    while(!maImplContextVector.empty())
-    {
-        delete *(maImplContextVector.end() - 1);
-        maImplContextVector.pop_back();
-    }
 }
 
 SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
@@ -95,7 +90,7 @@ SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
 
         for(a = 0; a < maImplContextVector.size(); a++)
         {
-            const OUString aStreamURL(getGraphicURLFromImportContext(**maImplContextVector[a]));
+            const OUString aStreamURL(getGraphicURLFromImportContext(*maImplContextVector[a]));
             const sal_uInt32 nNewQuality(getQualityIndex(aStreamURL));
 
             if(nNewQuality > nBestQuality)
@@ -112,15 +107,14 @@ SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
         }
 
         // Take out the most valuable one
-        const std::vector< SvXMLImportContextRef* >::iterator aRemove(maImplContextVector.begin() + nIndexOfPreferred);
-        pContext = **aRemove;
-        delete *aRemove;
+        const std::vector< SvXMLImportContextRef >::iterator aRemove(maImplContextVector.begin() + nIndexOfPreferred);
+        pContext = *aRemove;
         maImplContextVector.erase(aRemove);
 
         // remove the rest from parent
         for(a = 0; a < maImplContextVector.size(); a++)
         {
-            SvXMLImportContext& rCandidate = **maImplContextVector[a];
+            SvXMLImportContext& rCandidate = *maImplContextVector[a];
 
             if(pContext)
             {
@@ -134,7 +128,7 @@ SvXMLImportContextRef MultiImageImportHelper::solveMultipleImages()
     }
     else if (maImplContextVector.size() == 1)
     {
-        pContext = *maImplContextVector.front();
+        pContext = maImplContextVector.front();
     }
 
     return pContext;
@@ -144,7 +138,7 @@ void MultiImageImportHelper::addContent(const SvXMLImportContext& rSvXMLImportCo
 {
     if(dynamic_cast< const SvXMLImportContext* >(&rSvXMLImportContext))
     {
-        maImplContextVector.push_back(new SvXMLImportContextRef(const_cast< SvXMLImportContext* >(&rSvXMLImportContext)));
+        maImplContextVector.push_back(SvXMLImportContextRef(const_cast< SvXMLImportContext* >(&rSvXMLImportContext)));
     }
 }
 


More information about the Libreoffice-commits mailing list