summaryrefslogtreecommitdiff
path: root/sax/test/saxdemo.cxx
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2002-05-15 15:36:00 +0000
committerJörg Budischewski <jbu@openoffice.org>2002-05-15 15:36:00 +0000
commitcfef28ab6624327e8752fb5b1686aa29cc182e28 (patch)
treef6bb106b651dc96fb1c92ef9a35c1684ff6c7e6e /sax/test/saxdemo.cxx
parent4a5ce7c5cc10c81c5bed14e537388c7b0f4cfb16 (diff)
tests now pass the compiler
Diffstat (limited to 'sax/test/saxdemo.cxx')
-rw-r--r--sax/test/saxdemo.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 00e8bd29ef0c..f1ba17c5a870 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: saxdemo.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jbu $ $Date: 2000-10-13 06:49:10 $
+ * last change: $Author: jbu $ $Date: 2002-05-15 16:36:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -234,11 +234,11 @@ public: // ExtendedDocumentHandler
virtual void SAL_CALL characters(const OUString& aChars) throw (SAXException,RuntimeException)
{
- m_iCharCount += aChars.len();
+ m_iCharCount += aChars.getLength();
}
virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) throw (SAXException,RuntimeException)
{
- m_iWhitespaceCount += aWhitespaces.len();
+ m_iWhitespaceCount += aWhitespaces.getLength();
}
virtual void SAL_CALL processingInstruction(const OUString& aTarget, const OUString& aData) throw (SAXException,RuntimeException)
@@ -453,11 +453,11 @@ void writeParagraphHelper(
const Reference< XExtendedDocumentHandler > &r ,
const OUString & s)
{
- int nMax = s.len();
+ int nMax = s.getLength();
int nStart = 0;
- Sequence<sal_uInt16> seq( s.len() );
- memcpy( seq.getArray() , s.getStr() , s.len() * sizeof( sal_uInt16 ) );
+ Sequence<sal_uInt16> seq( s.getLength() );
+ memcpy( seq.getArray() , s.getStr() , s.getLength() * sizeof( sal_uInt16 ) );
for( int n = 1 ; n < nMax ; n++ ){
if( 32 == seq.getArray()[n] ) {