diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-09-03 18:29:30 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-04 09:57:11 +0000 |
commit | 9a0d753b84aed53083bed3ed460308b771f432a8 (patch) | |
tree | c4c27c8f8eb8c1a08df3f6e87e230918a1784eb1 /sw/source/filter/ascii | |
parent | ed87e4c4b09d0f623c350528a4f6a6d049735bd1 (diff) |
String to OUString
Change-Id: I8c51db8fce8c5eea1ac7bd5751aa7f3212ef1166
Reviewed-on: https://gerrit.libreoffice.org/5790
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ascii')
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index c5e8387a26fa..6617fff44c03 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -57,7 +57,7 @@ class SwASCIIParser bool bNewDoc; sal_uLong ReadChars(); - void InsertText( const String& rStr ); + void InsertText( const OUString& rStr ); public: SwASCIIParser( SwDoc* pD, const SwPaM& rCrsr, SvStream& rIn, @@ -485,10 +485,10 @@ sal_uLong SwASCIIParser::ReadChars() return 0; } -void SwASCIIParser::InsertText( const String& rStr ) +void SwASCIIParser::InsertText( const OUString& rStr ) { pDoc->InsertString( *pPam, rStr ); - pDoc->UpdateRsid( *pPam, rStr.Len() ); + pDoc->UpdateRsid( *pPam, rStr.getLength() ); pDoc->UpdateParRsid( pPam->GetPoint()->nNode.GetNode().GetTxtNode() ); if( pItemSet && g_pBreakIt && nScript != ( SCRIPTTYPE_LATIN | |