From 7cd179df80957b7daefab028cf35aebb1083b014 Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 6 Oct 2020 12:27:39 +0200 Subject: loplugin:const& make some params and methods const Change-Id: I2973128a9c6c53187e1da400d1a5df763d515596 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104020 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/editeng/impedit.cxx | 2 +- editeng/source/editeng/impedit.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng/source') diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 55d1239acb60..2fc7252c5f23 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -312,7 +312,7 @@ void ImpEditView::SelectionChanged() } // This function is also called when a text's font || size is changed. Because its highlight rectangle must be updated. -void ImpEditView::lokSelectionCallback(std::unique_ptr &pPolyPoly, bool bStartHandleVisible, bool bEndHandleVisible) { +void ImpEditView::lokSelectionCallback(const std::unique_ptr &pPolyPoly, bool bStartHandleVisible, bool bEndHandleVisible) { VclPtr pParent = pOutWin->GetParentWithLOKNotifier(); vcl::Region aRegion( *pPolyPoly ); diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 0efc9d552074..59db76fea44d 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -305,7 +305,7 @@ private: return mpEditViewCallbacks; } - void lokSelectionCallback(std::unique_ptr &pPolyPoly, bool bStartHandleVisible, bool bEndHandleVisible); + void lokSelectionCallback(const std::unique_ptr &pPolyPoly, bool bStartHandleVisible, bool bEndHandleVisible); void setEditViewCallbacks(EditViewCallbacks* pEditViewCallbacks) { -- cgit