summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf/parrtf.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-12 17:19:48 +0200
committerNoel Grandin <noel@peralex.com>2013-08-15 09:11:33 +0200
commit33eeb70011b34a3b04a74b2237d1d6fdde030c35 (patch)
tree02185ff85c69ea96bd8ba744facbb8974c4415a6 /svtools/source/svrtf/parrtf.cxx
parent78b2f4be915b7dd9bfabe34162163b362f0a2141 (diff)
convert include/svtools/svparser.hxx from String to OUString
Change-Id: I4d6196a9a96ad1dd236f8622a523b4702e92d76f
Diffstat (limited to 'svtools/source/svrtf/parrtf.cxx')
-rw-r--r--svtools/source/svrtf/parrtf.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 807459f92252..801e5c157663 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -95,7 +95,7 @@ int SvRTFParser::_GetNextToken()
default:
if( RTF_ISALPHA( nNextCh ) )
{
- aToken = '\\';
+ aToken = "\\";
{
String aStrBuffer;
sal_Unicode* pStr = aStrBuffer.AllocBuffer(
@@ -106,7 +106,6 @@ int SvRTFParser::_GetNextToken()
if( MAX_TOKEN_LEN == nStrLen )
{
aToken += aStrBuffer;
- aToken.GetBufferAccess(); // make unique string!
nStrLen = 0;
}
nNextCh = GetNextChar();
@@ -164,7 +163,7 @@ int SvRTFParser::_GetNextToken()
aParserStates.top().
nUCharOverread = nUCharOverread;
}
- aToken.Erase(); // #i47831# erase token to prevent the token from beeing treated as text
+ aToken = ""; // #i47831# erase token to prevent the token from beeing treated as text
// read next token
nRet = 0;
break;
@@ -185,7 +184,7 @@ int SvRTFParser::_GetNextToken()
if( !bRTF_InTextRead )
{
nRet = RTF_TEXTTOKEN;
- aToken = (sal_Unicode)nTokenValue;
+ aToken = OUString( (sal_Unicode)nTokenValue );
// overread the next n "RTF" characters. This
// can be also \{, \}, \'88