diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-07 17:16:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 08:08:35 +0200 |
commit | a209172669e7a2de6065486e385e4e3007b74bd2 (patch) | |
tree | 4a7e008cf700fb23ecc6e4cd44de1c6a08a9b7e7 /sd | |
parent | 2675cbf042130f24fe7ea299b85b8f5f4794a667 (diff) |
loplugin:constantparam
Change-Id: Ib92aba17c46a4ada75c2a0630f281759d995f32e
Reviewed-on: https://gerrit.libreoffice.org/40843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/drawdoc.hxx | 2 | ||||
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/sdview2.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index e0836dcdee7b..fc04e2ce2b30 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -256,7 +256,7 @@ public: SAL_DLLPRIVATE void InsertBookmark(const std::vector<OUString> &rBookmarkList, std::vector<OUString> &rExchangeList, bool bLink, - bool bReplace, sal_uInt16 nPgPos, + sal_uInt16 nPgPos, ::sd::DrawDocShell* pBookmarkDocSh, Point const * pObjPos); diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index a567d700c099..23c687e6dc1e 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -281,7 +281,6 @@ void SdDrawDocument::InsertBookmark( const std::vector<OUString> &rBookmarkList, // List of names of the bookmarks to be inserted std::vector<OUString> &rExchangeList, // List of the names to be used bool bLink, // Insert bookmarks as links? - bool bReplace, // Replace current default and notes pages? sal_uInt16 nInsertPos, // Insertion position of pages ::sd::DrawDocShell* pBookmarkDocSh, // If set, this is the source document Point const * pObjPos) // Insertion position of objects @@ -327,7 +326,7 @@ void SdDrawDocument::InsertBookmark( if ( bOK && bInsertPages ) { // Insert all page bookmarks - bOK = InsertBookmarkAsPage(rBookmarkList, &rExchangeList, bLink, bReplace, + bOK = InsertBookmarkAsPage(rBookmarkList, &rExchangeList, bLink, false/*bReplace*/, nInsertPos, false/*bNoDialogs*/, pBookmarkDocSh, true/*bCopy*/, true, false); } diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index 22f248c3cef6..2e1d0ed38b2e 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -840,7 +840,7 @@ IMPL_LINK( View, ExecuteNavigatorDrop, void*, p, void ) if( bNameOK ) { mrDoc.InsertBookmark( aBookmarkList, aExchangeList, - bLink, false/*bReplace*/, nPgPos, + bLink, nPgPos, &pPageObjsTransferable->GetDocShell(), &aPos ); } |