summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/documentlinkmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/documentlinkmgr.cxx')
-rw-r--r--sc/source/ui/docshell/documentlinkmgr.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/documentlinkmgr.cxx b/sc/source/ui/docshell/documentlinkmgr.cxx
index 19a8f0953768..6a39a349ae92 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();