diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-15 16:21:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-15 16:38:49 +0100 |
commit | c06fe7e201cdb0fa77da3067dc51a2c6e081d82a (patch) | |
tree | bdef94d733044b3ed01422763ea838a37dd79376 /sw | |
parent | 1b31d5fb52ebdf9c32ec50dd5521724bc1b1c73e (diff) |
Resolves: fdo#52013 use vector::insert instead
Change-Id: I3cbc0c0751c069ff9bc7d8b1b737fcfdc3be2b9d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/rolbck.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx index 982d26e2bf4e..9bd12144c448 100644 --- a/sw/source/core/inc/rolbck.hxx +++ b/sw/source/core/inc/rolbck.hxx @@ -400,8 +400,7 @@ public: SwpHstry::iterator itSourceBegin = pIns->m_SwpHstry.begin() + nStart; SwpHstry::iterator itSourceEnd = pIns->m_SwpHstry.end(); if (itSourceBegin == itSourceEnd) return; - m_SwpHstry.reserve(nPos + static_cast<size_t>(itSourceEnd - itSourceBegin)); - std::copy( itSourceBegin, itSourceEnd, m_SwpHstry.begin() + nPos ); + m_SwpHstry.insert(m_SwpHstry.begin() + nPos, itSourceBegin, itSourceEnd); pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd ); } |