diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-12 12:08:00 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-14 11:37:19 +0000 |
commit | 62633dfe026bc3badf7066e5fb454036bae9cfdc (patch) | |
tree | b1a30ddd709ba80b8629d916d54c03d733651d12 /basegfx/source/range | |
parent | aa458c31a5dfa2be8b6bd8f1b4e402ce8c27edde (diff) |
clang-tidy performance-unnecessary-value-param in various
Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907
Reviewed-on: https://gerrit.libreoffice.org/24019
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basegfx/source/range')
-rw-r--r-- | basegfx/source/range/b2drangeclipper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx index 882b4a88cfc2..46f9e490e37c 100644 --- a/basegfx/source/range/b2drangeclipper.cxx +++ b/basegfx/source/range/b2drangeclipper.cxx @@ -706,14 +706,14 @@ namespace basegfx // wow what a hack. necessary because stl's list::erase does // not eat reverse_iterator - template<typename Cont, typename Iter> Iter eraseFromList(Cont&, Iter); + template<typename Cont, typename Iter> Iter eraseFromList(Cont&, const Iter&); template<> inline ListOfEdges::iterator eraseFromList( - ListOfEdges& rList, ListOfEdges::iterator aIter) + ListOfEdges& rList, const ListOfEdges::iterator& aIter) { return rList.erase(aIter); } template<> inline ListOfEdges::reverse_iterator eraseFromList( - ListOfEdges& rList, ListOfEdges::reverse_iterator aIter) + ListOfEdges& rList, const ListOfEdges::reverse_iterator& aIter) { return ListOfEdges::reverse_iterator( rList.erase(boost::prior(aIter.base()))); |