summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-05-25 00:12:55 +0200
committerMichael Stahl <mstahl@redhat.com>2012-05-25 00:17:08 +0200
commit2733658dd47e86ac72c53565f1fd8700f884c907 (patch)
tree98755a09f53401bfd41196aac18c8453dab0f571 /sw
parent9c0ca924446933431d736ee0dd37e6852b4947dc (diff)
SwHistory::Move parameter nEnd was unused
... which is good because apparently the use of the non-default value has always been wrong, until the STL conversion fixed it by accident.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/inc/rolbck.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx
index 0eb6efa66cf7..efb6f41cf331 100644
--- a/sw/source/core/inc/rolbck.hxx
+++ b/sw/source/core/inc/rolbck.hxx
@@ -398,10 +398,10 @@ public:
// for SwUndoDelete::Undo/Redo
void Move( sal_uInt16 nPos, SwHistory *pIns,
- sal_uInt16 nStart = 0, sal_uInt16 nEnd = USHRT_MAX )
+ sal_uInt16 const nStart = 0)
{
SwpHstry::iterator itSourceBegin = pIns->m_SwpHstry.begin() + nStart;
- SwpHstry::iterator itSourceEnd = nEnd == USHRT_MAX ? pIns->m_SwpHstry.end() : pIns->m_SwpHstry.begin() + nEnd;
+ SwpHstry::iterator itSourceEnd = pIns->m_SwpHstry.end();
std::copy( itSourceBegin, itSourceEnd, m_SwpHstry.begin() + nPos );
pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd );
}