[Libreoffice-commits] .: sal/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Jun 9 06:01:06 PDT 2011
sal/qa/osl/file/osl_old_test_file.cxx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 6d89397a4f1b42311b1c927ae953944bf3f4d9e6
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jun 9 14:01:00 2011 +0100
WaE: on some random compiler or other
diff --git a/sal/qa/osl/file/osl_old_test_file.cxx b/sal/qa/osl/file/osl_old_test_file.cxx
index e1d8e87..80e9e07 100644
--- a/sal/qa/osl/file/osl_old_test_file.cxx
+++ b/sal/qa/osl/file/osl_old_test_file.cxx
@@ -214,10 +214,12 @@ void oldtestfile::test_file_003()
CPPUNIT_ASSERT_MESSAGE("failure #4", target.getLength() >= dir.getLength() );
if( target.getLength() >= dir.getLength() )
{
- int j;
- for( j = dir.getLength() ;
- j < target.getLength() &&
- aSource3[i+1][j-dir.getLength()] == target[j] ; j++ );
+ int j = dir.getLength();
+ while (j < target.getLength() &&
+ aSource3[i+1][j-dir.getLength()] == target[j])
+ {
+ ++j;
+ }
CPPUNIT_ASSERT_MESSAGE("failure #5", j == target.getLength() );
}
}
More information about the Libreoffice-commits
mailing list