diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-15 20:46:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-15 20:54:59 +0100 |
commit | 3669bb966f709089f43111b5ca1057bfe4a22697 (patch) | |
tree | 58f73cb8976a92a33c9563ddf786ef8c129c6f02 /sw/source/core | |
parent | 9865dbc7af9331ccb1a8e55a09dd821fb014a5a4 (diff) |
Resolves: fdo#52013 use vector::insert instead
Change-Id: Ie12e5b11196b1b0f919bd18f28a0b86f60cc6513
Signed-off-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/inc/rolbck.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx index efb6f41cf331..cd5a9473e0ef 100644 --- a/sw/source/core/inc/rolbck.hxx +++ b/sw/source/core/inc/rolbck.hxx @@ -402,7 +402,8 @@ public: { SwpHstry::iterator itSourceBegin = pIns->m_SwpHstry.begin() + nStart; SwpHstry::iterator itSourceEnd = pIns->m_SwpHstry.end(); - std::copy( itSourceBegin, itSourceEnd, m_SwpHstry.begin() + nPos ); + if (itSourceBegin == itSourceEnd) return; + m_SwpHstry.insert(m_SwpHstry.begin() + nPos, itSourceBegin, itSourceEnd); pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd ); } |