From cfef28ab6624327e8752fb5b1686aa29cc182e28 Mon Sep 17 00:00:00 2001 From: Jörg Budischewski Date: Wed, 15 May 2002 15:36:00 +0000 Subject: tests now pass the compiler --- sax/test/sax/testsax.cxx | 8 ++++---- sax/test/sax/testwriter.cxx | 10 +++++----- sax/test/saxdemo.cxx | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) (limited to 'sax/test') diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx index 3bdced65803b..e7946b9ab2a3 100644 --- a/sax/test/sax/testsax.cxx +++ b/sax/test/sax/testsax.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testsax.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jl $ $Date: 2001-03-23 14:01:52 $ + * last change: $Author: jbu $ $Date: 2002-05-15 16:35:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -428,11 +428,11 @@ public: // ExtendedDocumentHandler OString o = OUStringToOString(aChars , RTL_TEXTENCODING_UTF8 ); printf( "%s\n" , o.getStr() ); } - 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) diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx index cef77fb8371a..89e1de587b84 100644 --- a/sax/test/sax/testwriter.cxx +++ b/sax/test/sax/testwriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testwriter.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jbu $ $Date: 2001-01-04 16:00:43 $ + * last change: $Author: jbu $ $Date: 2002-05-15 16:35:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -480,11 +480,11 @@ void OSaxWriterTest::writeParagraph( const Reference< XExtendedDocumentHandler > &r , const OUString & s) { - int nMax = s.len(); + int nMax = s.getLength(); int nStart = 0; - Sequence seq( s.len() ); - memcpy( seq.getArray() , s.getStr() , s.len() * sizeof( sal_uInt16 ) ); + Sequence 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] ) { 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 seq( s.len() ); - memcpy( seq.getArray() , s.getStr() , s.len() * sizeof( sal_uInt16 ) ); + Sequence 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] ) { -- cgit