tests now pass the compiler
This commit is contained in:
parent
4a5ce7c5cc
commit
cfef28ab66
3 changed files with 16 additions and 16 deletions
|
@ -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)
|
||||
|
|
|
@ -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] ) {
|
||||
|
|
|
@ -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] ) {
|
||||
|
|
Loading…
Reference in a new issue