From 4085f6ca9b345c362bb286e6fb1b17b2fcf2bc4c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Jan 2019 09:29:27 +0200 Subject: loplugin:constparams in sd..svtools Change-Id: I50b864ffc4ed13ba801af46815988bf568b83d2e Reviewed-on: https://gerrit.libreoffice.org/66832 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/inc/customshowlist.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/inc') diff --git a/sd/inc/customshowlist.hxx b/sd/inc/customshowlist.hxx index 666e43614ce2..c612ce4bf93e 100644 --- a/sd/inc/customshowlist.hxx +++ b/sd/inc/customshowlist.hxx @@ -77,7 +77,7 @@ public: { return mShows.empty() ? nullptr : mShows[mnCurPos].get(); } - void erase(SdCustomShow* p) + void erase(const SdCustomShow* p) { auto it = std::find_if(mShows.begin(), mShows.end(), [&] (std::unique_ptr const &i) { return i.get() == p; }); -- cgit