diff options
author | Maciej Rumianowski <maciej.rumianowski@gmail.com> | 2011-10-05 09:35:03 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-10-07 00:21:07 +0200 |
commit | bcf7d383578a00b961a0484534d810202cf57852 (patch) | |
tree | db55a36e4ca80868dfff16c28a276be0f0ca7598 /sw/source/filter/ww8/wrtw8num.cxx | |
parent | 37836e3ba37c1ff7c303047a418dcbc3ef390afe (diff) |
2nd part of Replace WW8Bytes with ww::bytes
Use prefered methods from SwWW8Writer
Diffstat (limited to 'sw/source/filter/ww8/wrtw8num.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtw8num.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/wrtw8num.cxx b/sw/source/filter/ww8/wrtw8num.cxx index 0fad84404c4b..6dc8b3701b2a 100644 --- a/sw/source/filter/ww8/wrtw8num.cxx +++ b/sw/source/filter/ww8/wrtw8num.cxx @@ -745,14 +745,14 @@ static void SwWw8_InsertAnlText( const String& rStr, sal_uInt8*& rpCh, sal_uInt16& rCharLen, SVBT8& r8Len ) { sal_uInt8 nb = 0; - WW8Bytes aO; + ww::bytes aO; SwWW8Writer::InsAsString8( aO, rStr, RTL_TEXTENCODING_MS_1252 ); - sal_uInt16 nCnt = aO.Count(); + sal_uInt16 nCnt = aO.size(); if( nCnt && nCnt < rCharLen ) { nb = (sal_uInt8)nCnt; - memcpy( rpCh, aO.GetData(), nCnt ); + std::copy( aO.begin(), aO.end(), rpCh ); rpCh += nCnt; rCharLen = rCharLen - nCnt; } |