summaryrefslogtreecommitdiff
path: root/svx/source/dialog/srchdlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-29 15:04:58 +0200
committerNoel Grandin <noel@peralex.com>2016-03-01 08:30:28 +0200
commit5e913234da65484778d53179ee2005aec01d0f0e (patch)
tree7532854c855220fd110f6340f5c9c8e53af117b9 /svx/source/dialog/srchdlg.cxx
parent595f46344e18fd6275ff7b862269e4c131449591 (diff)
loplugin:unuseddefaultparam in svx (part2)
Change-Id: I99e3d6137ec17e3fc782253c85e5fa4f1da4cec4
Diffstat (limited to 'svx/source/dialog/srchdlg.cxx')
-rw-r--r--svx/source/dialog/srchdlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index d54cce84ef47..a53e915361b6 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -230,8 +230,9 @@ void SearchAttrItemList::Clear()
// Deletes the pointer to the items
-void SearchAttrItemList::Remove(size_t nPos, size_t nLen)
+void SearchAttrItemList::Remove(size_t nPos)
{
+ size_t nLen = 1;
if ( nPos + nLen > size() )
nLen = size() - nPos;