summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-03 11:48:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 12:05:29 +0200
commitd4e9fe5a733f9c3a3c0b673379739c768075b465 (patch)
treeaa03f07d97a59053c374f590818aa942f120848e /sw
parenta4b581bb996142d2906f23161ec673f958511649 (diff)
loplugin:checkunusedparams in sfx2
Change-Id: Iea88ddd619f10a2a2586ee24edbf07e246dcbb49 Reviewed-on: https://gerrit.libreoffice.org/37191 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx2
-rw-r--r--sw/source/core/docnode/section.cxx2
-rw-r--r--sw/source/filter/html/swhtml.cxx2
-rw-r--r--sw/source/uibase/shells/basesh.cxx4
-rw-r--r--sw/source/uibase/uiview/viewport.cxx2
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx2
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx2
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx2
8 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
index c996ed76f62b..e1d1a19b6a3a 100644
--- a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+++ b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
@@ -241,7 +241,7 @@ void DocumentLinksAdministrationManager::UpdateLinks()
SfxFrame* pFrame = pMedium ? pMedium->GetLoadTargetFrame() : nullptr;
vcl::Window* pDlgParent = pFrame ? &pFrame->GetWindow() : nullptr;
- GetLinkManager().UpdateAllLinks( bAskUpdate, true, false, pDlgParent );
+ GetLinkManager().UpdateAllLinks( bAskUpdate, false, pDlgParent );
}
else
{
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 21ac8346dd1f..a0420f45ba96 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -1338,7 +1338,7 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd )
if ( pSrcDoc != pDoc &&
rSection.IsProtectFlag() )
{
- pSrcDoc->getIDocumentLinksAdministration().GetLinkManager().UpdateAllLinks( false );
+ pSrcDoc->getIDocumentLinksAdministration().GetLinkManager().UpdateAllLinks( false, false, nullptr );
}
if( pCpyRg )
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 92086cd905a2..6122d867a2da 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -431,7 +431,7 @@ SwHTMLParser::~SwHTMLParser()
sal_uInt16 nLinkMode = m_xDoc->getIDocumentSettingAccess().getLinkUpdateMode( true );
if( nLinkMode != NEVER && bAsync &&
SfxObjectCreateMode::INTERNAL!=m_xDoc->GetDocShell()->GetCreateMode() )
- m_xDoc->getIDocumentLinksAdministration().GetLinkManager().UpdateAllLinks( nLinkMode == MANUAL );
+ m_xDoc->getIDocumentLinksAdministration().GetLinkManager().UpdateAllLinks( nLinkMode == MANUAL, false, nullptr );
if ( m_xDoc->GetDocShell()->IsLoading() )
{
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index b6f5a493946d..5016d266e795 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -673,7 +673,7 @@ void SwBaseShell::Execute(SfxRequest &rReq)
if( !rSh.GetLinkManager().GetLinks().empty() )
{
rSh.StartAllAction();
- rSh.GetLinkManager().UpdateAllLinks( false, true, true );
+ rSh.GetLinkManager().UpdateAllLinks( false, true, nullptr );
rSh.EndAllAction();
}
SfxDispatcher &rDis = *rTempView.GetViewFrame()->GetDispatcher();
@@ -1158,7 +1158,7 @@ void SwBaseShell::Execute(SfxRequest &rReq)
{
rSh.EnterStdMode();
rSh.StartAllAction();
- rSh.GetLinkManager().UpdateAllLinks( false, false );
+ rSh.GetLinkManager().UpdateAllLinks( false, false, nullptr );
rSh.EndAllAction();
}
}
diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx
index 503a7cae6b7a..edf3f4a21e90 100644
--- a/sw/source/uibase/uiview/viewport.cxx
+++ b/sw/source/uibase/uiview/viewport.cxx
@@ -285,7 +285,7 @@ void SwView::SetVisArea( const tools::Rectangle &rRect, bool bUpdateScrollbar )
GetDocShell()->SvEmbeddedObject::SetVisArea( aVis );*/
}
- SfxViewShell::VisAreaChanged( m_aVisArea );
+ SfxViewShell::VisAreaChanged();
InvalidateRulerPos();
diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx
index fff7ffbacf6d..429a1eaa6b27 100644
--- a/sw/source/uibase/uiview/viewprt.cxx
+++ b/sw/source/uibase/uiview/viewprt.cxx
@@ -233,7 +233,7 @@ void SwView::ExecutePrint(SfxRequest& rReq)
//#i61455# if master documents are printed silently without loaded links then update the links now
if( bSilent && pSh->IsGlobalDoc() && !pSh->IsGlblDocSaveLinks() )
{
- pSh->GetLinkManager().UpdateAllLinks( false, false );
+ pSh->GetLinkManager().UpdateAllLinks( false, false, nullptr );
}
SfxRequest aReq( rReq );
SfxBoolItem aBool(SID_SELECTION, bPrintSelection);
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 939145763a70..e2f1cf7d9aac 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -2201,7 +2201,7 @@ void SwXTextDocument::updateLinks( )
if( !rLnkMan.GetLinks().empty() )
{
UnoActionContext aAction(pDoc);
- rLnkMan.UpdateAllLinks( false, false, true );
+ rLnkMan.UpdateAllLinks( false, true, nullptr );
}
}
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index e695ffa171e7..94db8c159641 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -809,7 +809,7 @@ void SwGlobalTree::ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry )
case CTX_UPDATE_LINK:
case CTX_UPDATE_ALL:
{
- pActiveShell->GetLinkManager().UpdateAllLinks();
+ pActiveShell->GetLinkManager().UpdateAllLinks(true, false, nullptr);
if(CTX_UPDATE_ALL == nSelectedPopupEntry)
nSlot = FN_UPDATE_TOX;
pCont = nullptr;