diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-11 15:01:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-11 15:01:47 +0100 |
commit | 6f1bdda2d26dc26f91fd327c82bc7d4b9ee6ab92 (patch) | |
tree | 6161de438476a4cb11ef5f41c84f1ccb43e710bf /sal | |
parent | regression test for fdo#53814 (diff) | |
download | core-6f1bdda2d26dc26f91fd327c82bc7d4b9ee6ab92.tar.gz core-6f1bdda2d26dc26f91fd327c82bc7d4b9ee6ab92.zip |
loplugin: more unused OUStrings and so forth
Change-Id: I4f3a51e1fd3ddca9442022a7134306fbf32e13ae
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_old_test_file.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sal/qa/osl/file/osl_old_test_file.cxx b/sal/qa/osl/file/osl_old_test_file.cxx index 0d2379e0fa75..13c46b4057a9 100644 --- a/sal/qa/osl/file/osl_old_test_file.cxx +++ b/sal/qa/osl/file/osl_old_test_file.cxx @@ -26,12 +26,6 @@ * ************************************************************************/ -// LLA: -// this file is converted to use with testshl2 -// original was placed in sal/test/textenc.cxx - -#include <stdio.h> - #include <osl/file.h> #include <osl/process.h> #include <rtl/ustring.hxx> @@ -119,20 +113,12 @@ void oldtestfile::test_file_001() OUString target; OUString rel = OUString::createFromAscii( aSource1[i] ); oslFileError e = osl_getAbsoluteFileURL( base1.pData, rel.pData , &target.pData ); - //fprintf(stderr, "%d : %s -- %s -- %s\n", i, aSource1[i], aSource1[i+1], OUStringToOString(target , RTL_TEXTENCODING_ASCII_US ).getStr() ); CPPUNIT_ASSERT_MESSAGE("failure #1", osl_File_E_None == e ); if( osl_File_E_None == e ) { CPPUNIT_ASSERT_MESSAGE("failure #1.1", target.equalsAscii( aSource1[i+1] ) ); } - OString o = OUStringToOString( target , RTL_TEXTENCODING_ASCII_US ); - OString obase = OUStringToOString( base1 , RTL_TEXTENCODING_ASCII_US ); - // fprintf( stderr, "%d %s + %s = %s\n" ,e, obase.getStr(), aSource1[i], o.pData->buffer ); } - - OUString err1( RTL_CONSTASCII_USTRINGPARAM( "../.." ) ); - OUString target; - // CPPUNIT_ASSERT_MESSAGE("failure #11", osl_File_E_None != osl_getAbsoluteFileURL( base1.pData , err1.pData , &target.pData ) ); #endif } @@ -146,14 +132,11 @@ void oldtestfile::test_file_002() OUString target; OUString rel = OUString::createFromAscii( aSource2[i] ); oslFileError e = osl_getAbsoluteFileURL( base2.pData, rel.pData , &target.pData ); - //fprintf(stderr, "%d : %s -- %s -- %s\n", i, aSource2[i], aSource2[i+1], OUStringToOString(target , RTL_TEXTENCODING_ASCII_US ).getStr() ); CPPUNIT_ASSERT_MESSAGE("failure #2", osl_File_E_None == e ); if( osl_File_E_None == e ) { CPPUNIT_ASSERT_MESSAGE("failure #2.1", target.equalsAscii( aSource2[i+1] ) ); } - OString o = OUStringToOString( target , RTL_TEXTENCODING_ASCII_US ); - OString obase = OUStringToOString( base2 , RTL_TEXTENCODING_ASCII_US ); } #endif } |