From 7d6c67d323a87f1006d84c2a95b45dfbfb03c0c8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Mar 2020 15:11:55 +0200 Subject: convert enum to scoped in SvBaseLink Change-Id: Ief399381ac27764fce95ee053c322571a07b671c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91366 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svdograf.cxx | 2 +- svx/source/svdraw/svdoole2.cxx | 2 +- svx/source/svdraw/svdotxln.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source') diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 0d298e27bd30..49c4c3175dd6 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -468,7 +468,7 @@ void SdrGrafObj::ImpRegisterLink() { pGraphicLink = new SdrGraphicLink( *this ); pLinkManager->InsertFileLink( - *pGraphicLink, OBJECT_CLIENT_GRF, aFileName, (aFilterName.isEmpty() ? nullptr : &aFilterName)); + *pGraphicLink, sfx2::SvBaseLinkObjectType::ClientGraphic, aFileName, (aFilterName.isEmpty() ? nullptr : &aFilterName)); pGraphicLink->Connect(); } } diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 8ff2f6a66aef..50afc8fcbd36 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -934,7 +934,7 @@ void SdrOle2Obj::CheckFileLink_Impl() { mpImpl->mpObjectLink = new SdrEmbedObjectLink( this ); mpImpl->maLinkURL = aLinkURL; - pLinkManager->InsertFileLink( *mpImpl->mpObjectLink, OBJECT_CLIENT_OLE, aLinkURL ); + pLinkManager->InsertFileLink( *mpImpl->mpObjectLink, sfx2::SvBaseLinkObjectType::ClientOle, aLinkURL ); mpImpl->mpObjectLink->Connect(); } } diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx index 8af1d8647abe..01055b45afb6 100644 --- a/svx/source/svdraw/svdotxln.cxx +++ b/svx/source/svdraw/svdotxln.cxx @@ -257,7 +257,7 @@ void SdrTextObj::ImpRegisterLink() sfx2::LinkManager* pLinkManager(getSdrModelFromSdrObject().GetLinkManager()); if (pLinkManager!=nullptr && pData!=nullptr && pData->pLink==nullptr) { // don't register twice pData->pLink = new ImpSdrObjTextLink(this); - pLinkManager->InsertFileLink(*pData->pLink,OBJECT_CLIENT_FILE,pData->aFileName, + pLinkManager->InsertFileLink(*pData->pLink,sfx2::SvBaseLinkObjectType::ClientFile,pData->aFileName, !pData->aFilterName.isEmpty() ? &pData->aFilterName : nullptr); } -- cgit v1.2.3