summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-16 15:51:01 +0200
committerNoel Grandin <noel@peralex.com>2013-09-17 09:06:41 +0200
commita11990f8329f824e0fbe325a6527a925f0c14134 (patch)
treead6a5aa482cb343cd2ace751211c2327c5ec7f45
parent5b83b465f7618be1e5a935fe4e402e03af3c79e7 (diff)
convert sw/source/core/inc/SwXMLBlockExport.hxx from String to OUString
Change-Id: I157e560482af5d917fbd6878dd679993f1da4fca
-rw-r--r--sw/source/core/inc/SwXMLBlockExport.hxx3
-rw-r--r--sw/source/core/swg/SwXMLBlockExport.cxx6
2 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/core/inc/SwXMLBlockExport.hxx b/sw/source/core/inc/SwXMLBlockExport.hxx
index ff3c637b649a..a499907bb4e8 100644
--- a/sw/source/core/inc/SwXMLBlockExport.hxx
+++ b/sw/source/core/inc/SwXMLBlockExport.hxx
@@ -22,7 +22,6 @@
#include <xmloff/xmlexp.hxx>
-class String;
class SwXMLTextBlocks;
class SwXMLBlockListExport : public SvXMLExport
@@ -58,7 +57,7 @@ public:
virtual ~SwXMLTextBlockExport ( void ) {}
sal_uInt32 exportDoc(enum ::xmloff::token::XMLTokenEnum /*eClass*/) {return 0;}
- sal_uInt32 exportDoc(const String & rText);
+ sal_uInt32 exportDoc(const OUString & rText);
void _ExportAutoStyles() {}
void _ExportMasterStyles () {}
void _ExportContent() {}
diff --git a/sw/source/core/swg/SwXMLBlockExport.cxx b/sw/source/core/swg/SwXMLBlockExport.cxx
index 15dd5d95ab29..39aa87a1f7bb 100644
--- a/sw/source/core/swg/SwXMLBlockExport.cxx
+++ b/sw/source/core/swg/SwXMLBlockExport.cxx
@@ -97,7 +97,7 @@ SwXMLTextBlockExport::SwXMLTextBlockExport(
XML_NAMESPACE_TEXT );
}
-sal_uInt32 SwXMLTextBlockExport::exportDoc(const String &rText)
+sal_uInt32 SwXMLTextBlockExport::exportDoc(const OUString &rText)
{
GetDocHandler()->startDocument();
@@ -123,8 +123,8 @@ sal_uInt32 SwXMLTextBlockExport::exportDoc(const String &rText)
sal_Int32 nPos = 0;
do
{
- String sTemp ( rText.GetToken( 0, '\015', nPos ) );
- SvXMLElementExport aPara (*this, XML_NAMESPACE_TEXT, XML_P, sal_True, sal_False);
+ OUString sTemp ( rText.getToken( 0, '\015', nPos ) );
+ SvXMLElementExport aPara (*this, XML_NAMESPACE_TEXT, XML_P, sal_True, sal_False);
GetDocHandler()->characters(sTemp);
} while (-1 != nPos );
}