diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2002-05-15 15:36:00 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2002-05-15 15:36:00 +0000 |
commit | cfef28ab6624327e8752fb5b1686aa29cc182e28 (patch) | |
tree | f6bb106b651dc96fb1c92ef9a35c1684ff6c7e6e /sax/test | |
parent | 4a5ce7c5cc10c81c5bed14e537388c7b0f4cfb16 (diff) |
tests now pass the compiler
Diffstat (limited to 'sax/test')
-rw-r--r-- | sax/test/sax/testsax.cxx | 8 | ||||
-rw-r--r-- | sax/test/sax/testwriter.cxx | 10 | ||||
-rw-r--r-- | sax/test/saxdemo.cxx | 14 |
3 files changed, 16 insertions, 16 deletions
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<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] ) { 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] ) { |