[Libreoffice] [PATCH] Kill Pos_XXX in favour of osl_Pos_XXX
Michael Lefevre
lefevre00 at yahoo.fr
Wed Apr 13 13:43:54 PDT 2011
---
sal/qa/osl/file/osl_File.cxx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index ede89cb..555f70a 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -3608,14 +3608,14 @@ namespace osl_File
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
nError1 = testFile.setPos( osl_Pos_Absolut, sizeof( pBuffer_Char ) - 2 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- nError1 = testFile.setPos( Pos_Current, 0);
+ nError1 = testFile.setPos( osl_Pos_Current, 0);
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
nError1 = testFile.read( buffer_read, 1, nCount_read );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
nError1 = testFile.close( );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- CPPUNIT_ASSERT_MESSAGE( "test for setPos function: test for Pos_Current, set the position to end, test if the ( end -1 ) char in file is correct",
+ CPPUNIT_ASSERT_MESSAGE( "test for setPos function: test for osl_Pos_Current, set the position to end, test if the ( end -1 ) char in file is correct",
buffer_read[0] == pBuffer_Char[sizeof( pBuffer_Char ) - 2] );
}
@@ -3788,7 +3788,7 @@ namespace osl_File
{
nError1 = testFile.isEndOfFile( pEOF );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- nError1 = testFile.setPos( Pos_Current, 1 );
+ nError1 = testFile.setPos( osl_Pos_Current, 1 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
}
nError1 = testFile.getPos( nFilePointer );
--
1.7.1
More information about the LibreOffice
mailing list