summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtww8.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/wrtww8.cxx')
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index e5723fc0b1c4..0dcc81d6cf2e 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -1756,9 +1756,8 @@ void SwWW8Writer::InsAsString8(ww::bytes &rO, const OUString& rStr,
OString sTmp(OUStringToOString(rStr, eCodeSet));
const char *pStart = sTmp.getStr();
const char *pEnd = pStart + sTmp.getLength();
- rO.reserve(rO.size() + sTmp.getLength());
- std::copy(pStart, pEnd, std::inserter(rO, rO.end()));
+ rO.insert( rO.end(), pStart, pEnd );
}
void SwWW8Writer::WriteString16(SvStream& rStrm, const OUString& rStr,