summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/DocumentLinksAdministrationManager.cxx')
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
index 0949aa77d582..1255eccc5433 100644
--- a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+++ b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
@@ -75,7 +75,7 @@ namespace
tools::SvRef<sfx2::SvBaseLink> xLink = pLnk;
OUString sFName;
- sfx2::LinkManager::GetDisplayNames( xLink, nullptr, &sFName );
+ sfx2::LinkManager::GetDisplayNames( xLink.get(), nullptr, &sFName );
INetURLObject aURL( sFName );
if( INetProtocol::File == aURL.GetProtocol() ||
@@ -417,7 +417,7 @@ bool DocumentLinksAdministrationManager::EmbedAllLinks()
// if one forgot to remove itself
if( xLink.Is() )
- rLnkMgr.Remove( xLink );
+ rLnkMgr.Remove( xLink.get() );
bRet = true;
}