diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-29 13:37:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:27 +0200 |
commit | 595f46344e18fd6275ff7b862269e4c131449591 (patch) | |
tree | 0de2d2e300399b9aa9c0fea2dd6ca2155f8a231a /svx/source/svdraw/svdetc.cxx | |
parent | 44e700f70d750cf1c6aac89d0dd07a4f57879b1b (diff) |
loplugin:unuseddefaultparam in svx (part1)
Change-Id: I0fc8d00447491e8474508952c21d07aa22b6f055
Diffstat (limited to 'svx/source/svdraw/svdetc.cxx')
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index d79f6d25de68..bc10c23a19b1 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -269,15 +269,12 @@ unsigned SdrLinkList::FindEntry(const Link<SdrObjFactory*,void>& rLink) const return 0xFFFF; } -void SdrLinkList::InsertLink(const Link<SdrObjFactory*,void>& rLink, unsigned nPos) +void SdrLinkList::InsertLink(const Link<SdrObjFactory*,void>& rLink) { unsigned nFnd=FindEntry(rLink); if (nFnd==0xFFFF) { if (rLink.IsSet()) { - if(nPos==0xFFFF) - aList.push_back(rLink); - else - aList.insert(aList.begin() + nPos, rLink); + aList.push_back(rLink); } else { OSL_FAIL("SdrLinkList::InsertLink(): Tried to insert a link that was not set already."); } |