diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 09:27:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 09:27:22 +0100 |
commit | 130c44b09ee23454d30e9c15f00c9e300808600c (patch) | |
tree | ebb9a13d1c57df3d98f520893868202c9399bcaa /sw | |
parent | 8a7dbf9cbbf7bf650491ade4a8cb76b5aed91bda (diff) |
replace ByteString::ConvertToUnicode
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww1/w1class.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/config/uinums.cxx | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/filter/ww1/w1class.cxx b/sw/source/filter/ww1/w1class.cxx index 22d575fd3535..1648b906eef2 100644 --- a/sw/source/filter/ww1/w1class.cxx +++ b/sw/source/filter/ww1/w1class.cxx @@ -72,7 +72,7 @@ sal_Unicode Ww1PlainText::operator [] ( sal_uLong ulOffset ) if( rFib.GetStream().Seek( ulFilePos + ulOffset ) == ulFilePos+ulOffset && rFib.GetStream().Read( &cRead, sizeof( cRead ) ) == sizeof( cRead ) ) { - cRet = ByteString::ConvertToUnicode( cRead, RTL_TEXTENCODING_MS_1252 ); + cRet = rtl::OUString(&cRead, 1, RTL_TEXTENCODING_MS_1252).toChar(); } else cRet = ' '; diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 0a54c41e2aea..2ce7503130ff 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -3208,8 +3208,7 @@ bool SwWW8ImplReader::ReadChar(long nPosCp, long nCpOfs) if( '\x0' != cInsert ) { - String sInsert = ByteString::ConvertToUnicode(cInsert, - RTL_TEXTENCODING_MS_1252 ); + rtl::OUString sInsert(&cInsert, 1, RTL_TEXTENCODING_MS_1252); emulateMSWordAddTextToParagraph(sInsert); } if (!maApos.back()) //a para end in apo doesn't count diff --git a/sw/source/ui/config/uinums.cxx b/sw/source/ui/config/uinums.cxx index 665ed2c168cf..8d85cf96def0 100644 --- a/sw/source/ui/config/uinums.cxx +++ b/sw/source/ui/config/uinums.cxx @@ -403,8 +403,10 @@ SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( SvStream& rStream, nCharSet = RTL_TEXTENCODING_SYMBOL; if( VERSION_53A > nVersion ) - aFmt.SetBulletChar( ByteString::ConvertToUnicode( - sal_Char(aFmt.GetBulletChar()), nCharSet )); + { + sal_Char cEncoded(aFmt.GetBulletChar()); + aFmt.SetBulletChar(rtl::OUString(&cEncoded, 1, nCharSet).toChar()); + } } if( VERSION_30B != nVersion ) |