[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Jul 15 08:39:30 PDT 2012
sw/source/core/inc/rolbck.hxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit c06fe7e201cdb0fa77da3067dc51a2c6e081d82a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jul 15 16:21:44 2012 +0100
Resolves: fdo#52013 use vector::insert instead
Change-Id: I3cbc0c0751c069ff9bc7d8b1b737fcfdc3be2b9d
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx
index 982d26e..9bd1214 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 );
}
More information about the Libreoffice-commits
mailing list